弃用代码,准备 checkout 到孤儿分支。
This commit is contained in:
@@ -1,14 +1,33 @@
|
||||
# This file contains the config of the whole project.
|
||||
# DO NOT share your crtical info to others.
|
||||
# Change the file name from .settings.py to settings.py.
|
||||
from sdgb import aimedb_api, felica
|
||||
from sdgb import aimedb_api, felica, mifare
|
||||
|
||||
accessCode = 50000000000000000000
|
||||
IDm = "0000000000000000"
|
||||
|
||||
felica(IDm)
|
||||
########## Felica Card ##########
|
||||
#################################
|
||||
## 这一部分仅作为参考,相关 API 已被 AiMeDB 禁用。
|
||||
|
||||
# accessCode = "50000000000000000000"
|
||||
# IDm = "0000000000000000"
|
||||
# felica(IDm)
|
||||
# userId = aimedb_api(accessCode)
|
||||
#################################
|
||||
##################################
|
||||
|
||||
|
||||
########## Mifare Card ##########
|
||||
#################################
|
||||
|
||||
accessCode = "01036000000000000000"
|
||||
serialNumber = "00000000"
|
||||
|
||||
|
||||
userId = mifare(accessCode, serialNumber)
|
||||
#################################
|
||||
##################################
|
||||
|
||||
|
||||
userId = aimedb_api(accessCode)
|
||||
|
||||
# 上传的乐曲成绩
|
||||
# 此成绩将覆盖原有成绩
|
||||
|
||||
@@ -5,7 +5,7 @@ import httpx
|
||||
|
||||
def DownloadOrder():
|
||||
ua = 'Windows/3.0'
|
||||
content = b'game_id=SDGA&ver=1.55&serial=A63E01E0048&encode=UTF-8'
|
||||
content = b'game_id=SDGA&ver=1.56&serial=A63E01E0048&encode=UTF-8'
|
||||
body = base64.b64encode(zlib.compress(content))
|
||||
r = httpx.post(
|
||||
'http://naominet.jp/sys/servlet/DownloadOrder',
|
||||
@@ -28,7 +28,7 @@ def uri():
|
||||
r = httpx.get(
|
||||
endpoint,
|
||||
headers = {
|
||||
'User-Agent': 'A63E01E0048',
|
||||
'User-Agent': 'A63E01E0000',
|
||||
}
|
||||
)
|
||||
resp_data = r.content
|
||||
|
||||
@@ -77,6 +77,7 @@ def sdgb_api(data, useApi, userId):
|
||||
proxy = "http://127.0.0.1:6152"
|
||||
)
|
||||
resp_enc = r.content
|
||||
print(resp_enc)
|
||||
try:
|
||||
resp_def = aes.decrypt(resp_enc)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user