|
|
@@ -24,6 +24,8 @@ const HbcpreConstKey = {
|
|
|
exchangeItemDataGrabEnabled: 'HbcpreExchangeItemDataGrabEnabled',
|
|
|
|
|
|
token: 'HbcpreUserToken',
|
|
|
+ userPhone: 'HbcpreUserPhoneNum',
|
|
|
+ userId: 'HbcpreUserId',
|
|
|
userInfo: 'HbcpreUserInfo',
|
|
|
collectionClassList: 'HbcpreCollectionClassList',
|
|
|
collectionClassDetail: 'HbcpreCollectionClassDetail',
|
|
|
@@ -48,9 +50,12 @@ const HbcpreConstKey = {
|
|
|
|
|
|
const gUserAgent = `Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1`;
|
|
|
let gAppToken = `02z/K0Xp4ItXMROQyjLv+2PYeo7V55zbL5/ojIRYKE4=`;
|
|
|
+let gUserPhoneNum = `13430389115`;
|
|
|
+let gUserId = 95388;
|
|
|
+
|
|
|
const gCommonHeaders = {
|
|
|
'Sec-Fetch-Dest' : `empty`,
|
|
|
- 'x-cloudbase-phone' : `13430389115`,
|
|
|
+ 'x-cloudbase-phone' : gUserPhoneNum,
|
|
|
'Connection' : `keep-alive`,
|
|
|
'Accept-Encoding' : `gzip, deflate, br`,
|
|
|
'trans-id' : `ea9cf9e9f7cf45adbebd67ce1314dcc5`,
|
|
|
@@ -98,7 +103,6 @@ function isDecryptionEnabled() {
|
|
|
|
|
|
function isOrderItemGrabEnabled() {
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.orderItemDataGrabEnabled, null);
|
|
|
- magicJS.log(`flag=${flag}`);
|
|
|
if (!flag) {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -806,16 +810,14 @@ function getBaseConfig() {
|
|
|
let config = {
|
|
|
"h5_host": "https://luanshu.hbcpre.com",
|
|
|
"api_host": "https://api.hbcpre.com",
|
|
|
- "upload_url": "https://lsjk.hbcpre.com/api/user/upload",
|
|
|
"name": "华文数交",
|
|
|
- "icon": "",
|
|
|
- "logo": "/static/default/common/login-logo.png",
|
|
|
"k": transformKeys("X2931Ur0r023I9PD"),
|
|
|
"v": transformKeys("g809i9823j7nJ9j7"),
|
|
|
"encrypt": false
|
|
|
};
|
|
|
return config;
|
|
|
}
|
|
|
+
|
|
|
//AES加密
|
|
|
function encryptAES(wordStr, keyStr, ivStr) {
|
|
|
if (typeof (wordStr) != 'string') {
|