Comments (9)
感谢提醒~ 应该是当时写代码时考虑不周,没有考虑到返回中没有signText
的情况,这个返回值应该也不常见,具体代表啥也无从考证了,因为这是原来领京豆的接口,现在还能用,但是相关页面都重定向到新地址了(https://bean.m.jd.com)...
from jd-coin.
感谢回答。意思是不影响正常功能吗?我这边测试有失败的任务: ['京东客户端签到领京豆']。2017-06-09 10:31:52,988 jobs[bean_app] INFO: 今日已签到: False; 其他功能都OK。这个功能你本地测试OK的吗,3q!
from jd-coin.
这个 bug 不影响正常领取,可能偶尔在领取失败时因为某些情况返回中没有错误信息会不能正确处理...
你那里今天还报错吗?你的这个 log 下一行是啥?我这里一切正常...
第一次执行:
2017-06-09 10:55:59,620 jobs[bean_app] INFO: 今日已签到: False; 签到天数: 5; 现有京豆: 949
2017-06-09 10:55:59,859 jobs[bean_app] INFO: 签到成功: True; Message: 签到成功,已领3京豆,翻牌得奖励
2017-06-09 10:55:59,966 jobs[bean_app] INFO: 翻牌成功: True; Message: 今日已签到,已翻牌,共领4京豆
第二次执行:
2017-06-09 11:03:35,639 jobs[bean_app] INFO: 今日已签到: True; 签到天数: 6; 现有京豆: 959
from jd-coin.
2017-06-09 10:31:50,899 root[config] INFO: 使用配置文件 "config.json".
2017-06-09 10:31:50,934 root[main] INFO: # 从文件加载 cookies 成功.
2017-06-09 10:31:50,934 jobs[daka] INFO: Job Start: 小白卡钢镚打卡
2017-06-09 10:31:51,278 jobs[daka] INFO: 登录状态: True
2017-06-09 10:31:51,641 jobs[daka] INFO: 今日已打卡: False; 打卡天数: 0
2017-06-09 10:31:51,981 jobs[daka] INFO: 打卡成功: False; Message: 尊敬的用户,成功办理小白卡才能领取哦
2017-06-09 10:31:51,982 jobs[daka] INFO: Job End.
2017-06-09 10:31:51,982 jobs[daka] INFO: Job Start: 京东客户端钢镚打卡
2017-06-09 10:31:52,328 jobs[daka] INFO: 登录状态: True
2017-06-09 10:31:52,328 jobs[daka_app] INFO: 今日已打卡: True
2017-06-09 10:31:52,329 jobs[daka] INFO: Job End.
2017-06-09 10:31:52,329 jobs[daka] INFO: Job Start: 京东客户端签到领京豆
2017-06-09 10:31:52,653 jobs[daka] INFO: 登录状态: True
2017-06-09 10:31:52,988 jobs[bean_app] INFO: 今日已签到: False; 签到天数: 8; 现有京豆: 891
2017-06-09 10:31:53,313 root[main] ERROR: # 任务运行出错: KeyError('signText',)
Traceback (most recent call last):
File "app/main.py", line 23, in main
job.run()
File "/home/pi/Codes/JD-Coin_20170609bak/app/job/daka.py", line 48, in run
self.job_success = self.sign()
File "/home/pi/Codes/JD-Coin_20170609bak/app/job/bean_app.py", line 52, in sign
message = as_json['signText']
KeyError: 'signText'
2017-06-09 10:31:53,317 jobs[daka] INFO: Job Start: 京东直播现金红包
2017-06-09 10:31:53,648 jobs[daka] INFO: 登录状态: True
2017-06-09 10:31:53,784 jobs[red_packet] INFO: 领取结果: 今天你已领过了,请明天再来领~
2017-06-09 10:31:53,784 jobs[daka] INFO: Job End.
2017-06-09 10:31:53,785 jobs[daka] INFO: Job Start: 京东会员页签到领京豆
2017-06-09 10:31:54,139 jobs[daka] INFO: 登录状态: True
2017-06-09 10:31:54,485 jobs[bean] INFO: 今日已签到: True; 现在有 891 个京豆.
2017-06-09 10:31:54,486 jobs[daka] INFO: Job End.
2017-06-09 10:31:54,486 jobs[daka] INFO: Job Start: 京东金融签到领京豆
2017-06-09 10:31:54,807 jobs[daka] INFO: 登录状态: True
2017-06-09 10:31:54,897 jobs[bean_jr] INFO: 今天已签到: True; 签到天数: 0
2017-06-09 10:31:54,898 jobs[daka] INFO: Job End.
= 任务数: 6; 失败数: 2
= 失败的任务: ['小白卡钢镚打卡', '京东客户端签到领京豆']
from jd-coin.
你在浏览器中登录 https://m.jd.com,然后访问 https://ld.m.jd.com/SignAndGetBeansN/signStart.action,返回的是什么呢?
from jd-coin.
登陆后,chrome浏览器访问 https://ld.m.jd.com/SignAndGetBeansN/signStart.action返回
{
status: 4
}
from jd-coin.
手动签到后正常显示是有其他正常信息的,都是绑定了qq登陆的。
from jd-coin.
你的意思是你在京东客户端手动签到成功了吗?然后签到成功后访问这个网址却依然返回的是 {"status": 4}
?
from jd-coin.
手动签到成功,返回的不是{"status": 4}。没手动签到,登陆后再点那个链接就是status4.
from jd-coin.
Related Issues (20)
- 运行到会员签到报错 HOT 1
- 网站已经可以扫码登录了 HOT 1
- 京东客户端签到领京豆 失败 HOT 4
- Could not find QtWebEngineProcess HOT 4
- 京东客户端钢镚打卡 打卡失败 HOT 1
- win2008R2没装显卡驱动导致浏览器黑屏各位有方案解决吗?
- 双签领礼包好像换了地址 HOT 6
- 账号密码用base64.b85encode(b'username').decode()方法转换的,还是报错 HOT 17
- 触摸不能自动填账号密码了,麻烦更新下
- 好像无法登陆
- 签到领钢镚的地址失效了 显示无法访问
- 已经不能登录了,是不是登陆地址换了 HOT 2
- 大佬方便加个京东金融 摇钱树的领果子功能吗
- 无法部署。。
- 正在修改移动端模拟登陆。 但是无法填写用户名和密码,有什么好的思路?
- 纯命令行的linux系统没法用吧 HOT 1
- 请按照图中轨迹滑动手指 HOT 1
- 没服务器,想薅羊毛进 HOT 1
- 可以部署在aliyun吗 HOT 1
- 建议作者将pyqt5获取cookie和配置文件获取cookie分离开来
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jd-coin.