From 4e9c21973b2320bfe946a60e6ff12da92e2413fd Mon Sep 17 00:00:00 2001 From: smallfawn <860562056@QQ.COM> Date: Wed, 25 Oct 2023 13:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chery.js | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/chery.js b/chery.js index ef87e4f..1d413e2 100644 --- a/chery.js +++ b/chery.js @@ -83,8 +83,25 @@ class UserInfo { async task_signIn() { try { let options = { - url: `https://mobile-consumer-sapp.chery.cn/web/task/record/sign-in/daily?taskCode=SignUp01&access_token=${this.ck}`, - headers: this.headers_get, + url: `https://mobile-consumer-sapp.chery.cn/web/event/trigger?access_token=${this.ck}`, + headers: { + "Host": "mobile-consumer-sapp.chery.cn", + "Connection": "keep-alive", + "Content-Length": "23", + "Authorization": "Bearer " + this.ck, + "User-Agent": "Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/81.0.4044.138 Mobile Safari/537.36 android/1.0.0", + "content-type": "application/json", + "Accept": "/", + "Origin": "https://hybrid-sapp.chery.cn", + "X-Requested-With": "com.digitalmall.chery", + "Sec-Fetch-Site": "same-site", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Dest": "empty", + "Referer": "https://hybrid-sapp.chery.cn/package-mine/pages/sign-in/sign-in", + "Accept-Encoding": "gzip, deflate" + }, + body: JSON.stringify({ "eventCode": "SJ10002" }) + }, result = await httpRequest(options); //console.log(options);