KingRan 2022-02-23 11:21:02 +08:00
parent 14fe2e2991
commit e762333ec0
1 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@
#依赖安装进入容器执行pip3 install PyExecJS
#想拿券的cookie环境变量JDJR_COOKIE格式就是普通的cookie格式pt_key=xxx;pt_pin=xxx
#活动每天早上10点开始截止到这个月28号建议corn 5 0 10 * * *
"""
cron: 5 0 10 * * *
new Env('京东金融分享助力');
"""
import execjs
import requests
import json
@ -92,7 +98,7 @@ def get_remarkinfo():
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()
ctx = execjs.compile(jstext)
result = ctx.call('getBody', url)