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.umd.js
CHANGED
|
@@ -29576,9 +29576,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29576
29576
|
addWindowTrustedOrigin: function() { return /* reexport */ addWindowTrustedOrigin; },
|
|
29577
29577
|
checkTextFormat: function() { return /* reexport */ checkTextFormat; },
|
|
29578
29578
|
createFileFromUrl: function() { return /* reexport */ createFileFromUrl; },
|
|
29579
|
-
decrypt: function() { return /* reexport */ decrypt; },
|
|
29580
29579
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29581
|
-
encrypt: function() { return /* reexport */ encrypt; },
|
|
29582
29580
|
extractFilenameFromUrl: function() { return /* reexport */ extractFilenameFromUrl; },
|
|
29583
29581
|
extractNewItems: function() { return /* reexport */ extractNewItems; },
|
|
29584
29582
|
findClosestAncestorByClass: function() { return /* reexport */ findClosestAncestorByClass; },
|
|
@@ -29601,7 +29599,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29601
29599
|
getI18nKey: function() { return /* reexport */ getI18nKey; },
|
|
29602
29600
|
getIMHanlder: function() { return /* reexport */ getIMHanlder; },
|
|
29603
29601
|
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29604
|
-
getKey: function() { return /* reexport */ getKey; },
|
|
29605
29602
|
getLanguages: function() { return /* reexport */ getLanguages; },
|
|
29606
29603
|
getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
|
|
29607
29604
|
getLoginPortalAccountKey: function() { return /* reexport */ getLoginPortalAccountKey; },
|
|
@@ -29630,7 +29627,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29630
29627
|
getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
|
|
29631
29628
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
29632
29629
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29633
|
-
|
|
29630
|
+
getViewKey: function() { return /* reexport */ getViewKey; },
|
|
29634
29631
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
29635
29632
|
hasUrlParams: function() { return /* reexport */ hasUrlParams; },
|
|
29636
29633
|
i18n: function() { return /* reexport */ i18n; },
|
|
@@ -29666,7 +29663,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29666
29663
|
updateI18nValue: function() { return /* reexport */ updateI18nValue; },
|
|
29667
29664
|
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
29668
29665
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
29669
|
-
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
29666
|
+
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; },
|
|
29667
|
+
viewDecrypt: function() { return /* reexport */ viewDecrypt; },
|
|
29668
|
+
viewEncrypt: function() { return /* reexport */ viewEncrypt; }
|
|
29670
29669
|
});
|
|
29671
29670
|
|
|
29672
29671
|
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
@@ -33727,17 +33726,17 @@ const logoutAccount = async endside_type => {
|
|
|
33727
33726
|
/**
|
|
33728
33727
|
* 解密
|
|
33729
33728
|
*/
|
|
33730
|
-
const
|
|
33731
|
-
let secretKey = await
|
|
33729
|
+
const viewDecrypt = async decryptStr => {
|
|
33730
|
+
let secretKey = await getViewKey();
|
|
33732
33731
|
const decrypted = crypto_js_default().AES.decrypt(decryptStr, secretKey).toString((crypto_js_default()).enc.Utf8);
|
|
33733
33732
|
return decrypted;
|
|
33734
33733
|
};
|
|
33735
33734
|
|
|
33736
33735
|
/**
|
|
33737
|
-
*
|
|
33736
|
+
* 加密
|
|
33738
33737
|
*/
|
|
33739
|
-
const
|
|
33740
|
-
let secretKey = await
|
|
33738
|
+
const viewEncrypt = async decryptStr => {
|
|
33739
|
+
let secretKey = await getViewKey();
|
|
33741
33740
|
const encrypted = crypto_js_default().AES.encrypt(decryptStr, secretKey).toString();
|
|
33742
33741
|
return encrypted;
|
|
33743
33742
|
};
|
|
@@ -33747,7 +33746,7 @@ const encrypt = async decryptStr => {
|
|
|
33747
33746
|
*/
|
|
33748
33747
|
const switchPortalLogin = async (data, appid, endside_type) => {
|
|
33749
33748
|
let old_key = window.sessionStorage.getItem("iportal_login_user_key");
|
|
33750
|
-
old_key = await
|
|
33749
|
+
old_key = await viewDecrypt(old_key);
|
|
33751
33750
|
data.password = old_key;
|
|
33752
33751
|
let resultData = await logoutAccount(endside_type);
|
|
33753
33752
|
let resultCode = resultData.code;
|
|
@@ -33763,18 +33762,22 @@ const switchPortalLogin = async (data, appid, endside_type) => {
|
|
|
33763
33762
|
};
|
|
33764
33763
|
}
|
|
33765
33764
|
};
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
|
|
33777
|
-
|
|
33765
|
+
|
|
33766
|
+
// export const getUserID = async (acccountName, old_key, group_id) => {
|
|
33767
|
+
// let queryData = {
|
|
33768
|
+
// param: {
|
|
33769
|
+
// accountName: acccountName,
|
|
33770
|
+
// group_id: group_id,
|
|
33771
|
+
// account_key: old_key,
|
|
33772
|
+
// },
|
|
33773
|
+
// };
|
|
33774
|
+
// let result = await request.post(
|
|
33775
|
+
// `/dataservice/rest/orchestration/getUserID`,
|
|
33776
|
+
// queryData
|
|
33777
|
+
// );
|
|
33778
|
+
// let persion_id = result.data.persion_id;
|
|
33779
|
+
// return persion_id;
|
|
33780
|
+
// };
|
|
33778
33781
|
|
|
33779
33782
|
/**
|
|
33780
33783
|
* 是否是安全账号
|
|
@@ -33817,9 +33820,9 @@ const loginAccount = async (data, appid) => {
|
|
|
33817
33820
|
//保存的正则2级密码
|
|
33818
33821
|
let key_code = result.data.codeData.code;
|
|
33819
33822
|
//反向解析一级密码
|
|
33820
|
-
pwd_code = await
|
|
33823
|
+
pwd_code = await viewDecrypt(pwd_code);
|
|
33821
33824
|
//反向解析2级密码
|
|
33822
|
-
key_code = await
|
|
33825
|
+
key_code = await viewDecrypt(key_code);
|
|
33823
33826
|
//密码匹配
|
|
33824
33827
|
if (pwd_code == data.password) {
|
|
33825
33828
|
//平台正向加密2级密码
|
|
@@ -33868,11 +33871,11 @@ const loginAccount = async (data, appid) => {
|
|
|
33868
33871
|
* 获取密钥
|
|
33869
33872
|
* @returns
|
|
33870
33873
|
*/
|
|
33871
|
-
const
|
|
33874
|
+
const getViewKey = async () => {
|
|
33872
33875
|
let queryData = {
|
|
33873
33876
|
param: {}
|
|
33874
33877
|
};
|
|
33875
|
-
let resultData = await request.post(`/dataservice/rest/orchestration/
|
|
33878
|
+
let resultData = await request.post(`/dataservice/rest/orchestration/getViewKey`, queryData);
|
|
33876
33879
|
let key = resultData.data.key;
|
|
33877
33880
|
return key;
|
|
33878
33881
|
};
|
|
@@ -34604,7 +34607,7 @@ const sendSms = async (smsServerIP, queryData, successCallback, errorCallback) =
|
|
|
34604
34607
|
return;
|
|
34605
34608
|
}
|
|
34606
34609
|
let options = {
|
|
34607
|
-
|
|
34610
|
+
param: queryData
|
|
34608
34611
|
};
|
|
34609
34612
|
request.post(smsServerIP, JSON.stringify(options)).then(res => {
|
|
34610
34613
|
console.log("发送消息成功:", res);
|