isdata-customer-sdk 0.1.87 → 0.1.89
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/dist/index.common.js +16 -9
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +16 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +3 -3
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29744,7 +29744,7 @@ var querystringify = __webpack_require__(3992);
|
|
|
29744
29744
|
;// ./src/api/request.js
|
|
29745
29745
|
|
|
29746
29746
|
|
|
29747
|
-
let apiContextPath =
|
|
29747
|
+
let apiContextPath = /* unsupported import.meta.env.VITE_SERVICE_BASE_URL */ undefined.VITE_SERVICE_BASE_URL;
|
|
29748
29748
|
// const onlineDevelopmentMode = process.env.VUE_APP_ONLINE_DEVELOPMENT_MODE === "true" || process.env.REACT_APP_ONLINE_DEVELOPMENT_MODE === "true"
|
|
29749
29749
|
// if (process.env.NODE_ENV === "development" && !onlineDevelopmentMode) {
|
|
29750
29750
|
// document.cookie =
|
|
@@ -32257,7 +32257,7 @@ const decrypt = async decryptStr => {
|
|
|
32257
32257
|
*/
|
|
32258
32258
|
const encrypt = async decryptStr => {
|
|
32259
32259
|
let secretKey = await getKey();
|
|
32260
|
-
const encrypted = crypto_js_default().AES.encrypt(decryptStr, secretKey).toString(
|
|
32260
|
+
const encrypted = crypto_js_default().AES.encrypt(decryptStr, secretKey).toString();
|
|
32261
32261
|
return encrypted;
|
|
32262
32262
|
};
|
|
32263
32263
|
|
|
@@ -32317,21 +32317,28 @@ const loginAccount = async (data, appid) => {
|
|
|
32317
32317
|
}
|
|
32318
32318
|
};
|
|
32319
32319
|
let result = await request.post(`/dataservice/rest/orchestration/getLoginPortalAccountKey`, queryData);
|
|
32320
|
+
//密码反向解析Key
|
|
32320
32321
|
let secretKey = await getKey();
|
|
32321
|
-
let
|
|
32322
|
-
let code = response.result.code;
|
|
32322
|
+
let code = result.data.code;
|
|
32323
32323
|
//获取key成功
|
|
32324
32324
|
if (code == 10001) {
|
|
32325
|
-
|
|
32325
|
+
//保存的真正一级密码
|
|
32326
|
+
let pwd_code = result.data.codeData.key;
|
|
32327
|
+
//缓存一级密码
|
|
32326
32328
|
let old_key = pwd_code;
|
|
32327
|
-
|
|
32329
|
+
//保存的正则2级密码
|
|
32330
|
+
let key_code = result.data.codeData.code;
|
|
32331
|
+
//反向解析一级密码
|
|
32328
32332
|
pwd_code = crypto_js_default().AES.decrypt(pwd_code, secretKey).toString((crypto_js_default()).enc.Utf8);
|
|
32333
|
+
//反向解析2级密码
|
|
32329
32334
|
key_code = crypto_js_default().AES.decrypt(key_code, secretKey).toString((crypto_js_default()).enc.Utf8);
|
|
32330
|
-
|
|
32331
|
-
|
|
32335
|
+
//密码匹配
|
|
32336
|
+
if (pwd_code == data.password) {
|
|
32337
|
+
//平台正向加密2级密码
|
|
32338
|
+
pwd_code = window.appSdk.Encrypt(key_code);
|
|
32332
32339
|
data.password = pwd_code;
|
|
32333
32340
|
result = await request.post(`/system/authority/loginAccount4Application?authPicCode=${data.imageCode}&dataappId=${appid}&mobileOrWeb=web`, data);
|
|
32334
|
-
response = JSON.parse(result.request.response);
|
|
32341
|
+
let response = JSON.parse(result.request.response);
|
|
32335
32342
|
code = response.code;
|
|
32336
32343
|
//登录平台成功
|
|
32337
32344
|
if (code == 10110004) {
|