From e762333ec0ce10c2020422b42768ff2a44e7a2bf Mon Sep 17 00:00:00 2001 From: KingRan Date: Wed, 23 Feb 2022 11:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_jrmx.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jd_jrmx.py b/jd_jrmx.py index 5612441..718d21e 100644 --- a/jd_jrmx.py +++ b/jd_jrmx.py @@ -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)