dream-common 1.1.24 → 1.1.26

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.
@@ -4,14 +4,14 @@ import {decodeBase58,encodeBase58} from "./Base58";
4
4
  export const reqEncrypt = (orgId, content) => {
5
5
  return reqDataEncrypt(orgId,"1.0.0","MD5","AES", content);
6
6
  }
7
- export const respDecrypt = obj => {
8
- console.log(obj)
7
+ export const respDecrypt = (obj = {}) => {
8
+ console.log("respDecrypt", obj);
9
9
  try {
10
- if (obj["encType"] === "NONE") {
11
- return obj["data"];
10
+ if (obj.encType === "NONE") {
11
+ return obj.data;
12
12
  } else {
13
- let signStr = decodeBase58(obj["signData"]);
14
- let encData = aesDecrypt(md5_16(signStr),decodeBase58(obj["encData"]));
13
+ let signStr = decodeBase58(obj.signData);
14
+ let encData = aesDecrypt(md5_16(signStr),decodeBase58(obj.encData));
15
15
  let obj = {};
16
16
  let pairs = encData.split('&');
17
17
  for (let i = 0; i < pairs.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dream-common",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {