Litre-WU / Sign

签到啦 (目前支持京东京豆、南航、川航、携程、微信游戏刷提现券、美团优惠券、统一快乐星球、中国移动等)
https://dev.litre.us.kg
200 stars 41 forks source link

移动是不是不行了 #17

Open handsomekai opened 11 months ago

handsomekai commented 11 months ago

青龙定时任务中 sign.py --10086 xxx.www3 我是这么填写的 填是JESSIONID中的值

handsomekai commented 11 months ago

日志如下:

京东pt_pin和pt_key需同时传入!!!

/ql/data/scripts/sign.py:119: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("startup") /ql/data/scripts/sign.py:136: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("shutdown") 2023-11-15 11:54:57.020 | INFO | main:m10086:740 - 公众号签到 {"code":"GOTO_LOGIN","msg":"需要去登录","data":null,"success":false,"status":"GOTO_LOGIN"} 2023-11-15 11:54:57.238 | INFO | main:m10086:752 - app 签到 {"code":"GOTO_LOGIN","msg":"需要去登录","data":null,"success":false,"status":"GOTO_LOGIN"} {"code":"GOTO_LOGIN","msg":"需要去登录","data":null,"success":false,"status":"GOTO_LOGIN"} 2023-11-15 11:54:57.444 | ERROR | main:m10086:826 - 10086 2D67AD5AxxxxxxxED972.www3 签到程序异常:'NoneType' object is not subscriptable

Litre-WU commented 11 months ago

青龙定时任务中 sign.py --10086 xxx.www3 我是这么填写的 填是JESSIONID中的值

用公众号或app里面的SESSION_TOKEN

handsomekai commented 11 months ago

青龙定时任务中sign.py --10086 xxx.www3 我这么填写的填的是JESSIONID中的值

使用公众号或应用程序里面的SESSION_TOKEN

可以了,反馈一下就是app的签到改版了,现在这个app的签到没签到成功

IKUKEJI commented 8 months ago

/ql/data/scripts/sign.py:116: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("startup") /ql/data/scripts/sign.py:133: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("shutdown")

执行结束... 2024-02-17 00:15:11 耗时 13 秒     

青龙运行同样收到这个报错,请问是失效了吗?

Litre-WU commented 8 months ago

/ql/data/scripts/sign.py:116: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("startup") /ql/data/scripts/sign.py:133: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("shutdown")

执行结束... 2024-02-17 00:15:11 耗时 13 秒     

青龙运行同样收到这个报错,请问是失效了吗?

这种信息不是报错

IKUKEJI commented 8 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

IKUKEJI commented 8 months ago

/ql/data/scripts/sign.py:116: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("startup") /ql/data/scripts/sign.py:133: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("shutdown")

执行结束... 2024-02-17 00:15:11 耗时 13 秒     

青龙运行同样收到这个报错,请问是失效了吗?

这种信息不是报错

请问在青龙里面运行是直接在SIGN.PY里面修改下面语句里面的TOKEN变量吗? tasks += [asyncio.createtask(m10086(**{"token": cache[k]})) for k in cache.iterkeys() if k.startswith("10086")]

Litre-WU commented 8 months ago

/ql/data/scripts/sign.py:116: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("startup") /ql/data/scripts/sign.py:133: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("shutdown")

执行结束... 2024-02-17 00:15:11 耗时 13 秒     

青龙运行同样收到这个报错,请问是失效了吗?

这种信息不是报错

请问在青龙里面运行是直接在SIGN.PY里面修改下面语句里面的TOKEN变量吗? tasks += [asyncio.createtask(m10086(**{"token": cache[k]})) for k in cache.iterkeys() if k.startswith("10086")]

cache就是tmp下的sqlite数据库里面的数据,可以通过diskcache包修改,也可以直接修改表数据

lffw001 commented 7 months ago

京东pt_pin和pt_key需同时传入!!!

/ql/data/scripts/sign.py:124: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("startup") /ql/data/scripts/sign.py:141: DeprecationWarning: on_event is deprecated, use lifespan event handlers instead.

    Read more about it in the
    [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).

@app.on_event("shutdown") 2024-03-09 13:35:04.216 | INFO | main:weimob:784 - {"errcode":1041,"errmsg":"获取登录信息失败,请重新登录"} 2024-03-09 13:35:04.244 | INFO | main:m10086:818 - 公众号签到 {"code":"GOTO_LOGIN","msg":"需要去登录","data":null,"success":false,"status":"GOTO_LOGIN"} 2024-03-09 13:35:04.597 | INFO | main:m10086:830 - app 签到 {"code":"GOTO_LOGIN","msg":"需要去登录","data":null,"success":false,"status":"GOTO_LOGIN"} {"code":"GOTO_LOGIN","msg":"需要去登录","data":null,"success":false,"status":"GOTO_LOGIN"} 2024-03-09 13:35:04.940 | ERROR | main:m10086:904 - 10086 bc017e435ba3e579a7cc87ae795f9c607987 签到程序异常:'NoneType' object is not subscriptable Traceback (most recent call last): File "/ql/data/scripts/sign.py", line 1832, in asyncio.run(crontab_task()) File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/ql/data/scripts/sign.py", line 1825, in crontab_task await qqstock(**meta) File "/ql/data/scripts/sign.py", line 1348, in qqstock act_id = res.json()["continue_task"]["act_id"] KeyError: 'continue_task' 请教移动和统一这样提示,是哪里有问题啊?

Litre-WU commented 7 months ago

移动好像有点儿问题,晚点修复更新

TonyYinChina commented 7 months ago

SESSION_TOKEN很快就是失效,很想知道怎么生成的

Litre-WU commented 7 months ago

SESSION_TOKEN很快就是失效,很想知道怎么生成的

账号登录接口生成的一种,一般在登录接口的set-cookie中

Litre-WU commented 7 months ago

SESSION_TOKEN很快就是失效,很想知道怎么生成的

账号登录接口生成的一种,一般在登录接口的set-cookie中

TonyYinChina commented 7 months ago

我找不到

lffw001 commented 6 months ago

移动的修复了吗?

TonyYinChina commented 6 months ago

10086的代码貌似没有修改

TonyYinChina commented 6 months ago

10086的代码貌似没有修改

macanLJ commented 3 months ago

改版了,app的每日签到重做了新的,只能等大佬修复,而且app是抓不到SESSION_TOKEN,SESSION_TOKEN这个值只能在小程序抓取到,app是不是不用SESSION_TOKEN这个值