zimin9 / wozaixiaoyuanpuncher Goto Github PK
View Code? Open in Web Editor NEW我在校园日检日报自动打卡程序。
License: Apache License 2.0
我在校园日检日报自动打卡程序。
License: Apache License 2.0
尝试使用jwsession打卡...
返回{'code': 7, 'message': '服务异常(7)'}
utils.processJson("config.json").write(configs)
登录可以成功,但是这段代码在云函数里似乎有些问题,应该在云函数里是无法进行写入的!
执行结果:
`{
"errorCode": -1,
"errorMessage": "user code exception caught",
"requestId": "0935b0f9-7997-47fd-b77f-accd044692b0",
"stackTrace": "Traceback (most recent call last):\n File "/var/user/index.py", line 206, in main_handler\n loginStatus = wzxy.login()\n File "/var/user/index.py", line 45, in login\n self.setJwsession(jwsession)\n File "/var/user/index.py", line 63, in setJwsession\n utils.processJson("config.json").write(configs)\n File "/var/user/utils.py", line 36, in write\n with open(self.path,'w',encoding='utf-8') as file:\nOSError: [Errno 30] Read-only file system: 'config.json'",
"statusCode": 430
}执行日志:
登陆成功`
试了5次账号被冻结了24小时,哪里设置的有问题吗🤔
是的,目前好一些的方法就是在Github上使用Action进行部署
…
------------------ 原始邮件 ------------------ 发件人: "zimin9/WoZaiXiaoYuanPuncher" @.>; 发送时间: 2021年8月8日(星期天) 下午4:04 @.>; @.@.>; 主题: Re: [zimin9/WoZaiXiaoYuanPuncher] 云函数写入问题 (#5) 是的,我看了一下文档。云函数不支持编写状态相关的代码,所以禁止文件读写操作。可以考虑接入云数据库,但是这个不是免费的。回头再看看有什么其它解决方案 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
可以使用 leancloud 的云存储服务 我摸索一下
Originally posted by @Chorer in #5 (comment)
抓包每日健康打卡中Post的数据没有“myArea” ,这个参数是干嘛的?😁
抓包的headers:
POST https://gw.wozaixiaoyuan.com/health/mobile/health/save?batch=1700001 HTTP/1.1
Host: gw.wozaixiaoyuan.com
Connection: keep-alive
Content-Length: 227
Accept: application/json, text/plain, /
JWSESSION: d45df9af5841460981745c98dd440441
User-Agent: Mozilla/5.0 (Linux; Android 10; SCMR-W09 Build/HUAWEISCMR-W09; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/4343 MMWEBSDK/20221012 Mobile Safari/537.36 MMWEBID/8277 MicroMessenger/8.0.30.2260(0x28001E55) WeChat/arm64 Weixin Android Tablet NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wxce6d08f781975d91
Content-Type: application/json;charset=UTF-8
Origin: https://gw.wozaixiaoyuan.com
X-Requested-With: com.tencent.mm
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://gw.wozaixiaoyuan.com/h5/mobile/health/0.3.7/health/detail?id=1700001
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7
Cookie: JWSESSION=d45df9af5841460981745c98dd440441; JWSESSION=d45df9af5841460981745c98dd440441
headers = {
"Host": "gw.wozaixiaoyuan.com",
"Connection": "keep-alive",
# "Content-Length": "227",
"Accept": "application/json, text/plain, /",
"JWSESSION": self.cookies['JWSESSION'],
"User-Agent": "Mozilla/5.0 (Linux; Android 10; SCMR-W09 Build/HUAWEISCMR-W09; wv) AppleWebKit/537.36 ("
"KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/4343 MMWEBSDK/20221012 Mobile "
"Safari/537.36 MMWEBID/8277 MicroMessenger/8.0.30.2260(0x28001E55) WeChat/arm64 Weixin "
"Android Tablet NetType/WIFI Language/zh_CN ABI/arm64 miniProgram/wxce6d08f781975d91",
"Content-Type": "application / json;charset=UTF-8",
"Origin": "https://gw.wozaixiaoyuan.com",
"X-Requested-With": "com.tencent.mm",
"Sec-Fetch-Site": "same-origin",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Dest": "empty",
"Referer": "https://gw.wozaixiaoyuan.com/h5/mobile/health/0.3.7/health/detail?id="+ID,
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
}
有点怕老师查到 自己尝试post又没问题 就是token三天两头过期
作者你好,看到你的计划中有Docker版的设想,我基于你的仓库开发了Docker版
ccqstark/WoZaiXiaoYuanPuncher-Docker
由于忘记fork直接clone了所以没法提PR,所以这里跟你说一声哈😁,算是又新增了一个版本
如果在微信小程序登录成功,之后再使用密码登录将直接判断登录失败!所以需要修改密码,且不能再小程序上登录。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.