From 3f08f1a1c01bebc04dd57ee79687c2bb19f19f00 Mon Sep 17 00:00:00 2001 From: smallfawn <101914820+smallfawn@users.noreply.github.com> Date: Sat, 18 Mar 2023 09:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=B0=94=E6=99=BA=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hezj.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hezj.js b/hezj.js index f8087512..d8be50a6 100644 --- a/hezj.js +++ b/hezj.js @@ -2,12 +2,13 @@ * 海尔智佳 * cron 8 1 * * * hezj.js * 活动入口 首页 智慧小屋 + * 2023/03/18 修复BUG * ========= 青龙--配置文件 =========== * # 项目名称 - * export hezj_data='token @ token' + * export hezj_data='token&clientId @ token&clientId ' * * 多账号用 换行 或 @ 分割 - * 抓包 https://mps.haiersmarthomes.com/api-gw , 找到accounttoken/accesstoken即可 + * 抓包 https://mps.haiersmarthomes.com/api-gw , 找到accounttoken/accesstoken & clientId即可 * ==================================== * */ @@ -82,6 +83,7 @@ class UserInfo { constructor(str) { this.index = ++userIdx; this.ck = str.split('&')[0]; //单账号多变量分隔符 + this.clientid = str.split('&')[1]; //let ck = str.split('&') //this.data1 = ck[0] this.ckStatus = true @@ -93,7 +95,7 @@ class UserInfo { 'user-agent': 'Mozilla/5.0 (Linux; U; Android 10; zh-CN; MI 8 Lite Build/QKQ1.190910.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/69.0.3497.100 UWS/3.22.2.55 Mobile Safari/537.36 UCBS/3.22.2.55_220929181439 ChannelId(1) NebulaSDK/1.8.100112 Nebula App/Uplus Nebula mPaaSClient', 'Content-Type': 'application/json;charset=UTF-8', 'accept': 'application/json, text/plain, */*', - 'clientid': 'BFD83F74EB909B3D4B271F4B540727F5', + 'clientid': this.clientid, 'timestamp': ts13(), 'accounttoken': this.ck, 'appid': 'MB-UZHSH-0000',