mirror of https://github.com/KingRan/KR.git
parent
14fe2e2991
commit
e762333ec0
|
@ -3,6 +3,12 @@
|
||||||
#依赖安装:进入容器执行:pip3 install PyExecJS
|
#依赖安装:进入容器执行:pip3 install PyExecJS
|
||||||
#想拿券的cookie环境变量JDJR_COOKIE,格式就是普通的cookie格式(pt_key=xxx;pt_pin=xxx)
|
#想拿券的cookie环境变量JDJR_COOKIE,格式就是普通的cookie格式(pt_key=xxx;pt_pin=xxx)
|
||||||
#活动每天早上10点开始截止到这个月28号,建议corn 5 0 10 * * *
|
#活动每天早上10点开始截止到这个月28号,建议corn 5 0 10 * * *
|
||||||
|
|
||||||
|
"""
|
||||||
|
cron: 5 0 10 * * *
|
||||||
|
new Env('京东金融分享助力');
|
||||||
|
"""
|
||||||
|
|
||||||
import execjs
|
import execjs
|
||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
|
@ -92,7 +98,7 @@ def get_remarkinfo():
|
||||||
|
|
||||||
|
|
||||||
def JDSignValidator(url):
|
def JDSignValidator(url):
|
||||||
with open('JDSignValidator.js', 'r', encoding='utf-8') as f:
|
with open('JDJRSignValidator.js', 'r', encoding='utf-8') as f:
|
||||||
jstext = f.read()
|
jstext = f.read()
|
||||||
ctx = execjs.compile(jstext)
|
ctx = execjs.compile(jstext)
|
||||||
result = ctx.call('getBody', url)
|
result = ctx.call('getBody', url)
|
||||||
|
|
Loading…
Reference in New Issue