dream-common 1.1.32 → 1.1.34

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.
@@ -14,14 +14,9 @@ export const respDecrypt = (respData = {}) => {
14
14
  let timestamp = respData.timestamp.toString();
15
15
  let orgId = respData.orgId.toString();
16
16
  encData = aesDecrypt(md5_16(orgId + signData + timestamp),encData);
17
- let obj = {};
18
- let params = new URLSearchParams(encData);
19
- // 遍历所有键值对
20
- for (let [key, value] of params.entries()) {
21
- obj[key] = value;
22
- }
17
+ console.log("解密内容:" + encData);
23
18
  try {
24
- return JSON.parse(obj.data);
19
+ return JSON.parse(encData);
25
20
  } catch (e) {
26
21
  return obj.data || null;
27
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dream-common",
3
- "version": "1.1.32",
3
+ "version": "1.1.34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
16
  "bs58": "^6.0.0",
17
- "crypto-js": "^4.2.0"
17
+ "crypto-js": "^4.2.0",
18
+ "js-base64": "^3.7.7"
18
19
  }
19
20
  }