Skip to content

Commit

Permalink
海尔智家
Browse files Browse the repository at this point in the history
  • Loading branch information
smallfawn committed Mar 18, 2023
1 parent b187369 commit 3f08f1a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hezj.js
Original file line number Diff line number Diff line change
Expand Up @@ -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即可
* ====================================
*
*/
Expand Down Expand Up @@ -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
Expand All @@ -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',
Expand Down

0 comments on commit 3f08f1a

Please sign in to comment.