统一推送前Python代码格式
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
``guid`` / ``_qimei_uuid42`` / ``__yamid_new`` / ``game_did`` 仍无服务端
|
||||
签发接口,本模块不生成、不伪造它们。
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
@@ -92,8 +93,10 @@ def fetch_anonymous_device_state(
|
||||
context = (
|
||||
"WB-"
|
||||
+ secrets.token_hex(16)
|
||||
+ "-" + secrets.token_hex(16)
|
||||
+ "-" + secrets.token_hex(16)
|
||||
+ "-"
|
||||
+ secrets.token_hex(16)
|
||||
+ "-"
|
||||
+ secrets.token_hex(16)
|
||||
)
|
||||
payload = {
|
||||
"uri": "10013",
|
||||
@@ -142,7 +145,10 @@ def fetch_anonymous_device_state(
|
||||
logger.info(
|
||||
"[huya-anon] 匿名设备态 OK: deviceid={}... guiddata={}... "
|
||||
"anouid={} biztoken={}...",
|
||||
deviceid[:14], guiddata[:8], anouid, biztoken[:10],
|
||||
deviceid[:14],
|
||||
guiddata[:8],
|
||||
anouid,
|
||||
biztoken[:10],
|
||||
)
|
||||
return {
|
||||
"udb_deviceid": deviceid,
|
||||
@@ -169,9 +175,11 @@ def main() -> int:
|
||||
else:
|
||||
for key, value in state.items():
|
||||
print(f"{key} = {value}")
|
||||
print("\n(4/7 字段;guid/_qimei_uuid42/__yamid_new/game_did 无服务端签发,不生成)")
|
||||
print(
|
||||
"\n(4/7 字段;guid/_qimei_uuid42/__yamid_new/game_did 无服务端签发,不生成)"
|
||||
)
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
raise SystemExit(main())
|
||||
|
||||
Reference in New Issue
Block a user