wotokol-edm 1.1.57 → 1.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/wotokol-edm.common.js +32 -2
- package/wotokol-edm.common.js.gz +0 -0
- package/wotokol-edm.css.gz +0 -0
- package/wotokol-edm.umd.js +32 -2
- package/wotokol-edm.umd.js.gz +0 -0
- package/wotokol-edm.umd.min.js +17 -17
- package/wotokol-edm.umd.min.js.gz +0 -0
package/package.json
CHANGED
package/wotokol-edm.common.js
CHANGED
|
@@ -97253,6 +97253,33 @@ function initJavaService(env) {
|
|
|
97253
97253
|
baseUrl = "https://api-prd.wotohub.com/";
|
|
97254
97254
|
}
|
|
97255
97255
|
}
|
|
97256
|
+
|
|
97257
|
+
// 替换空值
|
|
97258
|
+
function replaceNullWithEmptyMutate(obj) {
|
|
97259
|
+
if (obj === null) return;
|
|
97260
|
+
if (Array.isArray(obj)) {
|
|
97261
|
+
// 修改数组元素
|
|
97262
|
+
for (let i = 0; i < obj.length; i++) {
|
|
97263
|
+
if (obj[i] === null) {
|
|
97264
|
+
obj[i] = undefined; // 直接修改数组元素
|
|
97265
|
+
} else if (typeof obj[i] === "object") {
|
|
97266
|
+
replaceNullWithEmptyMutate(obj[i]); // 递归处理嵌套结构
|
|
97267
|
+
}
|
|
97268
|
+
}
|
|
97269
|
+
} else if (typeof obj === "object") {
|
|
97270
|
+
// 修改对象属性
|
|
97271
|
+
for (const key in obj) {
|
|
97272
|
+
if (obj.hasOwnProperty(key)) {
|
|
97273
|
+
if (obj[key] === null) {
|
|
97274
|
+
obj[key] = undefined; // 直接修改属性值
|
|
97275
|
+
} else if (typeof obj[key] === "object") {
|
|
97276
|
+
replaceNullWithEmptyMutate(obj[key]); // 递归处理嵌套结构
|
|
97277
|
+
}
|
|
97278
|
+
}
|
|
97279
|
+
}
|
|
97280
|
+
}
|
|
97281
|
+
return obj; // 返回修改后的原对象
|
|
97282
|
+
}
|
|
97256
97283
|
const request_instance = lib_axios.create({
|
|
97257
97284
|
baseURL: "",
|
|
97258
97285
|
timeout: 250000
|
|
@@ -97263,6 +97290,7 @@ request_instance.interceptors.request.use(function (config) {
|
|
|
97263
97290
|
// 设置签名
|
|
97264
97291
|
let _key = uuid.v4();
|
|
97265
97292
|
const parameter = config.params || config.data;
|
|
97293
|
+
replaceNullWithEmptyMutate(parameter);
|
|
97266
97294
|
let signatureObj = {};
|
|
97267
97295
|
let signature = "";
|
|
97268
97296
|
if (parameter) {
|
|
@@ -97328,9 +97356,11 @@ request_instance.interceptors.response.use(function (response) {
|
|
|
97328
97356
|
localStorage.removeItem("outboxPage");
|
|
97329
97357
|
localStorage.removeItem("omaToken");
|
|
97330
97358
|
localStorage.removeItem("oma_token");
|
|
97331
|
-
if ([
|
|
97359
|
+
if (["www.wotohub.com", "pre-hub.kuku.info"].includes(window.location.host)) {
|
|
97332
97360
|
window.location.href = "/login";
|
|
97333
97361
|
}
|
|
97362
|
+
} else if (response.data.code == "1007") {
|
|
97363
|
+
Message.error("验签失败!!!" + response.config.url);
|
|
97334
97364
|
} else if (response.data.message === "用户未登录") {
|
|
97335
97365
|
localStorage.removeItem("user_info");
|
|
97336
97366
|
localStorage.removeItem("user_equity");
|
|
@@ -97342,7 +97372,7 @@ request_instance.interceptors.response.use(function (response) {
|
|
|
97342
97372
|
localStorage.removeItem("outboxPage");
|
|
97343
97373
|
localStorage.removeItem("omaToken");
|
|
97344
97374
|
localStorage.removeItem("oma_token");
|
|
97345
|
-
if ([
|
|
97375
|
+
if (["www.wotohub.com", "pre-hub.kuku.info"].includes(window.location.host)) {
|
|
97346
97376
|
window.location.href = "/login";
|
|
97347
97377
|
}
|
|
97348
97378
|
}
|
package/wotokol-edm.common.js.gz
CHANGED
|
Binary file
|
package/wotokol-edm.css.gz
CHANGED
|
Binary file
|
package/wotokol-edm.umd.js
CHANGED
|
@@ -97263,6 +97263,33 @@ function initJavaService(env) {
|
|
|
97263
97263
|
baseUrl = "https://api-prd.wotohub.com/";
|
|
97264
97264
|
}
|
|
97265
97265
|
}
|
|
97266
|
+
|
|
97267
|
+
// 替换空值
|
|
97268
|
+
function replaceNullWithEmptyMutate(obj) {
|
|
97269
|
+
if (obj === null) return;
|
|
97270
|
+
if (Array.isArray(obj)) {
|
|
97271
|
+
// 修改数组元素
|
|
97272
|
+
for (let i = 0; i < obj.length; i++) {
|
|
97273
|
+
if (obj[i] === null) {
|
|
97274
|
+
obj[i] = undefined; // 直接修改数组元素
|
|
97275
|
+
} else if (typeof obj[i] === "object") {
|
|
97276
|
+
replaceNullWithEmptyMutate(obj[i]); // 递归处理嵌套结构
|
|
97277
|
+
}
|
|
97278
|
+
}
|
|
97279
|
+
} else if (typeof obj === "object") {
|
|
97280
|
+
// 修改对象属性
|
|
97281
|
+
for (const key in obj) {
|
|
97282
|
+
if (obj.hasOwnProperty(key)) {
|
|
97283
|
+
if (obj[key] === null) {
|
|
97284
|
+
obj[key] = undefined; // 直接修改属性值
|
|
97285
|
+
} else if (typeof obj[key] === "object") {
|
|
97286
|
+
replaceNullWithEmptyMutate(obj[key]); // 递归处理嵌套结构
|
|
97287
|
+
}
|
|
97288
|
+
}
|
|
97289
|
+
}
|
|
97290
|
+
}
|
|
97291
|
+
return obj; // 返回修改后的原对象
|
|
97292
|
+
}
|
|
97266
97293
|
const request_instance = lib_axios.create({
|
|
97267
97294
|
baseURL: "",
|
|
97268
97295
|
timeout: 250000
|
|
@@ -97273,6 +97300,7 @@ request_instance.interceptors.request.use(function (config) {
|
|
|
97273
97300
|
// 设置签名
|
|
97274
97301
|
let _key = uuid.v4();
|
|
97275
97302
|
const parameter = config.params || config.data;
|
|
97303
|
+
replaceNullWithEmptyMutate(parameter);
|
|
97276
97304
|
let signatureObj = {};
|
|
97277
97305
|
let signature = "";
|
|
97278
97306
|
if (parameter) {
|
|
@@ -97338,9 +97366,11 @@ request_instance.interceptors.response.use(function (response) {
|
|
|
97338
97366
|
localStorage.removeItem("outboxPage");
|
|
97339
97367
|
localStorage.removeItem("omaToken");
|
|
97340
97368
|
localStorage.removeItem("oma_token");
|
|
97341
|
-
if ([
|
|
97369
|
+
if (["www.wotohub.com", "pre-hub.kuku.info"].includes(window.location.host)) {
|
|
97342
97370
|
window.location.href = "/login";
|
|
97343
97371
|
}
|
|
97372
|
+
} else if (response.data.code == "1007") {
|
|
97373
|
+
Message.error("验签失败!!!" + response.config.url);
|
|
97344
97374
|
} else if (response.data.message === "用户未登录") {
|
|
97345
97375
|
localStorage.removeItem("user_info");
|
|
97346
97376
|
localStorage.removeItem("user_equity");
|
|
@@ -97352,7 +97382,7 @@ request_instance.interceptors.response.use(function (response) {
|
|
|
97352
97382
|
localStorage.removeItem("outboxPage");
|
|
97353
97383
|
localStorage.removeItem("omaToken");
|
|
97354
97384
|
localStorage.removeItem("oma_token");
|
|
97355
|
-
if ([
|
|
97385
|
+
if (["www.wotohub.com", "pre-hub.kuku.info"].includes(window.location.host)) {
|
|
97356
97386
|
window.location.href = "/login";
|
|
97357
97387
|
}
|
|
97358
97388
|
}
|
package/wotokol-edm.umd.js.gz
CHANGED
|
Binary file
|