mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
海尔智家
This commit is contained in:
8
hezj.js
8
hezj.js
@@ -2,12 +2,13 @@
|
|||||||
* 海尔智佳
|
* 海尔智佳
|
||||||
* cron 8 1 * * * hezj.js
|
* 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) {
|
constructor(str) {
|
||||||
this.index = ++userIdx;
|
this.index = ++userIdx;
|
||||||
this.ck = str.split('&')[0]; //单账号多变量分隔符
|
this.ck = str.split('&')[0]; //单账号多变量分隔符
|
||||||
|
this.clientid = str.split('&')[1];
|
||||||
//let ck = str.split('&')
|
//let ck = str.split('&')
|
||||||
//this.data1 = ck[0]
|
//this.data1 = ck[0]
|
||||||
this.ckStatus = true
|
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',
|
'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',
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
'accept': 'application/json, text/plain, */*',
|
'accept': 'application/json, text/plain, */*',
|
||||||
'clientid': 'BFD83F74EB909B3D4B271F4B540727F5',
|
'clientid': this.clientid,
|
||||||
'timestamp': ts13(),
|
'timestamp': ts13(),
|
||||||
'accounttoken': this.ck,
|
'accounttoken': this.ck,
|
||||||
'appid': 'MB-UZHSH-0000',
|
'appid': 'MB-UZHSH-0000',
|
||||||
|
|||||||
Reference in New Issue
Block a user