isdata-customer-sdk 0.2.47 → 0.2.48
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 +31 -28
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +31 -28
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -29558,9 +29558,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29558
29558
|
addWindowTrustedOrigin: function() { return /* reexport */ addWindowTrustedOrigin; },
|
|
29559
29559
|
checkTextFormat: function() { return /* reexport */ checkTextFormat; },
|
|
29560
29560
|
createFileFromUrl: function() { return /* reexport */ createFileFromUrl; },
|
|
29561
|
-
decrypt: function() { return /* reexport */ decrypt; },
|
|
29562
29561
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29563
|
-
encrypt: function() { return /* reexport */ encrypt; },
|
|
29564
29562
|
extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
|
|
29565
29563
|
extractNewItems: function() { return /* reexport */ extractNewItems; },
|
|
29566
29564
|
findClosestAncestorByClass: function() { return /* reexport */ findClosestAncestorByClass; },
|
|
@@ -29583,7 +29581,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29583
29581
|
getI18nKey: function() { return /* reexport */ getI18nKey; },
|
|
29584
29582
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
29585
29583
|
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29586
|
-
getKey: function() { return /* reexport */ getKey; },
|
|
29587
29584
|
getLanguages: function() { return /* reexport */ getLanguages; },
|
|
29588
29585
|
getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
|
|
29589
29586
|
getLoginPortalAccountKey: function() { return /* reexport */ getLoginPortalAccountKey; },
|
|
@@ -29612,7 +29609,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29612
29609
|
getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
|
|
29613
29610
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
29614
29611
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29615
|
-
|
|
29612
|
+
getViewKey: function() { return /* reexport */ getViewKey; },
|
|
29616
29613
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
29617
29614
|
hasUrlParams: function() { return /* reexport */ hasUrlParams; },
|
|
29618
29615
|
i18n: function() { return /* reexport */ i18n; },
|
|
@@ -29648,7 +29645,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29648
29645
|
updateI18nValue: function() { return /* reexport */ updateI18nValue; },
|
|
29649
29646
|
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
29650
29647
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
29651
|
-
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
29648
|
+
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; },
|
|
29649
|
+
viewDecrypt: function() { return /* reexport */ viewDecrypt; },
|
|
29650
|
+
viewEncrypt: function() { return /* reexport */ viewEncrypt; }
|
|
29652
29651
|
});
|
|
29653
29652
|
|
|
29654
29653
|
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -33709,17 +33708,17 @@ const logoutAccount = async endside_type => {
|
|
|
33709
33708
|
/**
|
|
33710
33709
|
* 解密
|
|
33711
33710
|
*/
|
|
33712
|
-
const
|
|
33713
|
-
let secretKey = await
|
|
33711
|
+
const viewDecrypt = async decryptStr => {
|
|
33712
|
+
let secretKey = await getViewKey();
|
|
33714
33713
|
const decrypted = crypto_js_default().AES.decrypt(decryptStr, secretKey).toString((crypto_js_default()).enc.Utf8);
|
|
33715
33714
|
return decrypted;
|
|
33716
33715
|
};
|
|
33717
33716
|
|
|
33718
33717
|
/**
|
|
33719
|
-
*
|
|
33718
|
+
* 加密
|
|
33720
33719
|
*/
|
|
33721
|
-
const
|
|
33722
|
-
let secretKey = await
|
|
33720
|
+
const viewEncrypt = async decryptStr => {
|
|
33721
|
+
let secretKey = await getViewKey();
|
|
33723
33722
|
const encrypted = crypto_js_default().AES.encrypt(decryptStr, secretKey).toString();
|
|
33724
33723
|
return encrypted;
|
|
33725
33724
|
};
|
|
@@ -33729,7 +33728,7 @@ const encrypt = async decryptStr => {
|
|
|
33729
33728
|
*/
|
|
33730
33729
|
const switchPortalLogin = async (data, appid, endside_type) => {
|
|
33731
33730
|
let old_key = window.sessionStorage.getItem("iportal_login_user_key");
|
|
33732
|
-
old_key = await
|
|
33731
|
+
old_key = await viewDecrypt(old_key);
|
|
33733
33732
|
data.password = old_key;
|
|
33734
33733
|
let resultData = await logoutAccount(endside_type);
|
|
33735
33734
|
let resultCode = resultData.code;
|
|
@@ -33745,18 +33744,22 @@ const switchPortalLogin = async (data, appid, endside_type) => {
|
|
|
33745
33744
|
};
|
|
33746
33745
|
}
|
|
33747
33746
|
};
|
|
33748
|
-
|
|
33749
|
-
|
|
33750
|
-
|
|
33751
|
-
|
|
33752
|
-
|
|
33753
|
-
|
|
33754
|
-
|
|
33755
|
-
|
|
33756
|
-
|
|
33757
|
-
|
|
33758
|
-
|
|
33759
|
-
|
|
33747
|
+
|
|
33748
|
+
// export const getUserID = async (acccountName, old_key, group_id) => {
|
|
33749
|
+
// let queryData = {
|
|
33750
|
+
// param: {
|
|
33751
|
+
// accountName: acccountName,
|
|
33752
|
+
// group_id: group_id,
|
|
33753
|
+
// account_key: old_key,
|
|
33754
|
+
// },
|
|
33755
|
+
// };
|
|
33756
|
+
// let result = await request.post(
|
|
33757
|
+
// `/dataservice/rest/orchestration/getUserID`,
|
|
33758
|
+
// queryData
|
|
33759
|
+
// );
|
|
33760
|
+
// let persion_id = result.data.persion_id;
|
|
33761
|
+
// return persion_id;
|
|
33762
|
+
// };
|
|
33760
33763
|
|
|
33761
33764
|
/**
|
|
33762
33765
|
* 是否是安全账号
|
|
@@ -33799,9 +33802,9 @@ const loginAccount = async (data, appid) => {
|
|
|
33799
33802
|
//保存的正则2级密码
|
|
33800
33803
|
let key_code = result.data.codeData.code;
|
|
33801
33804
|
//反向解析一级密码
|
|
33802
|
-
pwd_code = await
|
|
33805
|
+
pwd_code = await viewDecrypt(pwd_code);
|
|
33803
33806
|
//反向解析2级密码
|
|
33804
|
-
key_code = await
|
|
33807
|
+
key_code = await viewDecrypt(key_code);
|
|
33805
33808
|
//密码匹配
|
|
33806
33809
|
if (pwd_code == data.password) {
|
|
33807
33810
|
//平台正向加密2级密码
|
|
@@ -33850,11 +33853,11 @@ const loginAccount = async (data, appid) => {
|
|
|
33850
33853
|
* 获取密钥
|
|
33851
33854
|
* @returns
|
|
33852
33855
|
*/
|
|
33853
|
-
const
|
|
33856
|
+
const getViewKey = async () => {
|
|
33854
33857
|
let queryData = {
|
|
33855
33858
|
param: {}
|
|
33856
33859
|
};
|
|
33857
|
-
let resultData = await request.post(`/dataservice/rest/orchestration/
|
|
33860
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getViewKey`, queryData);
|
|
33858
33861
|
let key = resultData.data.key;
|
|
33859
33862
|
return key;
|
|
33860
33863
|
};
|
|
@@ -34586,7 +34589,7 @@ const sendSms = async (smsServerIP, queryData, successCallback, errorCallback) =
|
|
|
34586
34589
|
return;
|
|
34587
34590
|
}
|
|
34588
34591
|
let options = {
|
|
34589
|
-
|
|
34592
|
+
param: queryData
|
|
34590
34593
|
};
|
|
34591
34594
|
request.post(smsServerIP, JSON.stringify(options)).then(res => {
|
|
34592
34595
|
console.log("发送消息成功:", res);
|