shawenguan 1 an în urmă
părinte
comite
b91c2109ef
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  1. 7 0
      Scripts/imoutai/imoutaiHelper.js

+ 7 - 0
Scripts/imoutai/imoutaiHelper.js

@@ -328,6 +328,12 @@ async function getActParam(data) {
     });
 }
 
+function genActParam(data){
+    let encrypt = new Encrypt(G_AES_KEY, G_AES_IV);
+    let str = JSON.stringify(data);
+    return encrypt.aesEncrypt(str);
+}
+
 async function mtAdd(sessionId, itemId, shopId, userId, token, deviceId) {
     const mtK = `${new Date().getTime()}`;
     const mtV = await getMtv(deviceId, G_MT_VERSION);
@@ -361,6 +367,7 @@ async function mtAdd(sessionId, itemId, shopId, userId, token, deviceId) {
     };
 
     const actParam = await getActParam(d);
+    lk.log(`actParam=${genActParam(d)}`);
     d['actParam'] = actParam;
     lk.log(`actParam=${actParam}`);
     return new Promise((resolve, _reject) => {