本帖最后由 点控 于 2022-3-12 22:22 编辑
@恒哥@一哥@各位大哥
求写自动提交PUT请求的脚本 求大佬帮忙写个脚本每天自动打卡,但获取问卷ID估计比较麻烦,最好能上云。
我猜测主要还是最后一步提交问卷的包。 如需其他资料或截图,可在下方留言。
提交问卷时效:
1.早上6点-10点:单纯选择,并提交,界面如下。
早上问卷界面
2.下午12点-16点:选择与定位,并提交,界面如下。
下午问卷界面
登录的包: - POST https://xssw.gdit.edu.cn/campus/api/v1/get_weixin_token HTTP/1.1
- Host: xssw.gdit.edu.cn
- Connection: keep-alive
- Content-Length: 43
- Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJudW1iZXIiOiJvTUF0VTVTN2FQcjMydldtVkQ5RW13dFJpdDJzIiwicGxhdGZvcm0iOiJ3ZWxpbmsiLCJpYXQiOjE2NDY5OTU2NzcsImV4cCI6MTY0Njk5NTY4Mn0.6A1CV6UjJaY_hd3sU1Kd1E0BDtQgw-xjjRkgkluxabs
- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat
- content-type: application/json
- signature: d6dXO7+wt9BFDIzYAhGtHMgPprjDYmvslaglJ3zFYfUgNNx6UNK+TUn/yaAIm3N3uMEroAXKUXUMhQi6LOCeT0mc34blbI319bk4gur9u0JLuN7NF+ByRAp3BtYSIJjMLV1GWpHF/84Q7YsXRtnXo7u98m8pbJ9bhVBt9FWWTaQ=
- Referer: https://servicewechat.com/wxfe88906e8d3ee92d/13/page-frame.html
- Accept-Encoding: gzip, deflate, br
- {"code":"09389Jkl2ITvN84NBTnl2dduQv089JkC"}
复制代码
登录界面
获取问卷列表包: - POST https://xssw.gdit.edu.cn/campus/api/v1/getPlan HTTP/1.1
- Host: xssw.gdit.edu.cn
- Connection: keep-alive
- Content-Length: 223
- Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJudW1iZXIiOiJvTUF0VTVTN2FQcjMydldtVkQ5RW13dFJpdDJzIiwicGxhdGZvcm0iOiJ3ZWxpbmsiLCJpYXQiOjE2NDcwNjc4NDMsImV4cCI6MTY0NzA2Nzg0OH0.PplMIkfUEDbQAYWNw6UYlI9LA7AtINrWtyGPsi2cH2c
- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat
- content-type: application/json
- number: 0102200115
- signature: YmVYXmIKE4i3oZafKyc7XYvO0Ec3vvNSUtoki6WgeTtxbYDdqIqyaiCQ8GHqxrBeyVcnyiPcAkpBtcbfDsZVOy12yZ92AiPVroGoFz3FPM+UINR160xGgBBHeCM2qkS0PDX61mk/yDujZJBUrqg8H81BbISi37zbmyiHJ12HO4U=
- Referer: https://servicewechat.com/wxfe88906e8d3ee92d/13/page-frame.html
- Accept-Encoding: gzip, deflate, br
- {"query":{"type":{"$in":["调查问卷"]},"isRelease":true,"class":"6093d980c1cc9c1db09a5fd4","startTime":{"$lt":"2022-03-12T15:59:59.999Z"}},"sort":{"startTime":-1},"populate":[{"path":"createTeacher"}],"skip":0,"limit":4}
复制代码
提交问卷的包: - PUT https://xssw.gdit.edu.cn/campus/api/v1/PlanDetail HTTP/1.1
- Host: xssw.gdit.edu.cn
- Connection: keep-alive
- Content-Length: 363
- Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJudW1iZXIiOiJvTUF0VTVTN2FQcjMydldtVkQ5RW13dFJpdDJzIiwicGxhdGZvcm0iOiJ3ZWxpbmsiLCJpYXQiOjE2NDY5OTU2NzcsImV4cCI6MTY0Njk5NTY4Mn0.6A1CV6UjJaY_hd3sU1Kd1E0BDtQgw-xjjRkgkluxabs
- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 MicroMessenger/7.0.9.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat
- content-type: application/json
- number: 0102200115
- signature: qT0sHbTqdWj4+kNnTvUW9bIFWoTpCB9XIprOnPWE/mfSc2cAWzPAbPWXByshsNrvd9jAf3fheqHbQaMJMF82d6cbT6jHgqlbYW6a0nSSgyedwF4wcTs+BFKKm+IbMhATcqL/KQSRLoG4o/A6ygKIFum3MBHssU83cEl17dNLsLI=
- Referer: https://servicewechat.com/wxfe88906e8d3ee92d/13/page-frame.html
- Accept-Encoding: gzip, deflate, br
- {"query":{"_id":"622c1ba9e3ec09c681708adc"},"update":{"$set":{"signTime":"2022-03-12T06:32:26.521Z","answer":[{"title":"当日体温情况(请如实填写)","type":"单选题","resValue":"正常(36.3℃-37.2℃)"},{"title":"你的位置","type":"定位题","resValue":"广东省XXXXX"}],"platform":"weixin"}}}
复制代码
|