Code Monkey home page Code Monkey logo

Comments (19)

handsomekai avatar handsomekai commented on September 18, 2024

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

from sign.

handsomekai avatar handsomekai commented on September 18, 2024

日志如下:

京东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

from sign.

Litre-WU avatar Litre-WU commented on September 18, 2024

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

用公众号或app里面的SESSION_TOKEN

from sign.

handsomekai avatar handsomekai commented on September 18, 2024

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

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

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

from sign.

IKUKEJI avatar IKUKEJI commented on September 18, 2024

/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 秒     

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

from sign.

Litre-WU avatar Litre-WU commented on September 18, 2024

/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 秒     

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

这种信息不是报错

from sign.

IKUKEJI avatar IKUKEJI commented on September 18, 2024

from sign.

IKUKEJI avatar IKUKEJI commented on September 18, 2024

/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.create_task(m10086(**{"token": cache[k]})) for k in cache.iterkeys() if k.startswith("10086_")]

from sign.

Litre-WU avatar Litre-WU commented on September 18, 2024

/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.create_task(m10086(**{"token": cache[k]})) for k in cache.iterkeys() if k.startswith("10086_")]

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

from sign.

lffw001 avatar lffw001 commented on September 18, 2024

京东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'
请教移动和统一这样提示,是哪里有问题啊?

from sign.

Litre-WU avatar Litre-WU commented on September 18, 2024

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

from sign.

TonyYinChina avatar TonyYinChina commented on September 18, 2024

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

from sign.

Litre-WU avatar Litre-WU commented on September 18, 2024

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

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

from sign.

Litre-WU avatar Litre-WU commented on September 18, 2024

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

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

from sign.

TonyYinChina avatar TonyYinChina commented on September 18, 2024

我找不到

from sign.

lffw001 avatar lffw001 commented on September 18, 2024

移动的修复了吗?

from sign.

TonyYinChina avatar TonyYinChina commented on September 18, 2024

10086的代码貌似没有修改

from sign.

TonyYinChina avatar TonyYinChina commented on September 18, 2024

10086的代码貌似没有修改

from sign.

macanLJ avatar macanLJ commented on September 18, 2024

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

from sign.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.