Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

错误是今日校园版本过低,请更新至最新版本 #33

Open
Gepeng18 opened this issue Jan 7, 2021 · 7 comments
Open

错误是今日校园版本过低,请更新至最新版本 #33

Gepeng18 opened this issue Jan 7, 2021 · 7 comments

Comments

@Gepeng18
Copy link

Gepeng18 commented Jan 7, 2021

请问这个应该怎么办呀?各位大佬

@Ch2Meng
Copy link

Ch2Meng commented Jan 7, 2021

版本过低: DES key: b3L26XNL
提交版本不正确: form['uaIsCpadaily'] = True
ZimoLoveShuang/auto-sign#38

@MrBlessing
Copy link

版本过低: DES key: b3L26XNL
提交版本不正确: form['uaIsCpadaily'] = True
ZimoLoveShuang/auto-sign#38

信息收集的没有DES key,目前还无法解决

@Ch2Meng
Copy link

Ch2Meng commented Jan 8, 2021

提交表单

def submitForm(formWid, address, collectWid, schoolTaskWid, form, session, host):
headers = {
'User-Agent': 'Mozilla/5.0 (Linux; Android 4.4.4; OPPO R11 Plus Build/KTU84P) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Safari/537.36 okhttp/3.12.4',
'CpdailyStandAlone': '0',
'extension': '1',
'Cpdaily-Extension': 'xxxxxx',
'Content-Type': 'application/json; charset=utf-8',
# 请注意这个应该和配置文件中的host保持一致
'Host': host,
'Connection': 'Keep-Alive',
'Accept-Encoding': 'gzip'
}

里面的 'Cpdaily-Extension': 'xxxxxx',

用currency/login.py中的

Cpdaily-Extension

extension = {
"lon": user['lon'],
"model": "PCRT00",
"appVersion": "8.0.8",
"systemVersion": "4.4.4",
"userId": user['username'],
"systemName": "android",
"lat": user['lat'],
"deviceId": str(uuid.uuid1())
}
CpdailyInfo = DESEncrypt(json.dumps(extension))
生成的代替
'Cpdaily-Extension': CpdailyInfo

其中DESEncrypt函数在currency/encrypt.py
密钥要改成b3L26XNL
"appVersion": "8.2.14",

@MK331
Copy link

MK331 commented Jan 8, 2021

加密部分应该只要版本号正确就行,提供一个测试可用的参数值
index.py中的Cpdaily-Extension修改为Ew9uONYq03Siz+VLCzZ4RiWRaXXBubIGc1d7ecaS2YmSDf1+elDL0gdwAw977HbPzvgR3pkeyW3djmnPOMxYro3Tps7PNmLoqfNTAECZqcM1LAyx+2zTfDExNa4yDWs83AyTnSKXs7oHQvFOfXhKNY1OXVzIdnwOkgaNw7XxzM1+2efCWAJgUBoHNV3n3MayLqOwPvSCvBke+SHC/Hy/53+ehU9A1lst6JlpGiFhlEOUybo5s5/o+b/XLUexuEE50IQgdPL4Hi4vPe4yVzA8QLpIMKSFIaRm

@shunzhao
Copy link

shunzhao commented Jan 8, 2021

我尝试了一下,把版本密钥改成各位大佬说的:b3L26XNL就可以了。

@Gepeng18
Copy link
Author

Gepeng18 commented Jan 9, 2021

谢谢各位大佬,按照 @MK331 大牛说的,解决啦

@lthero-big
Copy link

b3L26XNL请问这个是如何生成的,现在是12月,又提示版本过低

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants