ChaoxingSign icon indicating copy to clipboard operation
ChaoxingSign copied to clipboard

修复无法登录、位置签到失败的问题

Open an-anthony opened this issue 3 years ago • 1 comments

无法登录的原因

若直接使用学习通的User-Agent,会触发”新设备登录“的2FA(见登录后响应包的json字段”toCheckMessage“)导致返回Cookies出错 但采用电脑的UA则可绕过2FA,并正常获取用户的Cookies。在此基础上,用电脑的UA获取的Cookies也可以实现在手机端登录的功能

其它修复:

  1. 修复了位置签到(直接从签到页面匹配了签到经纬度,达到了签在老师脸上的效果(((((
  2. cURL的部分现在也能返回请求头了,方便以后调试

an-anthony avatar Aug 29 '22 03:08 an-anthony

giao 发了PR之后我才发现好像UA不太对 (反正也签上了, 开摆((

an-anthony avatar Aug 29 '22 03:08 an-anthony