shawenguan 1 tahun lalu
induk
melakukan
4bf592678a
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      Scripts/pingan/pinganSeckill.js

+ 2 - 1
Scripts/pingan/pinganSeckill.js

@@ -163,7 +163,7 @@ function getLastToken(token) {
 }
 
 async function trySecKill() {
-    let execCount = 10;
+    let execCount = 1;
     let tipsText = '';
     for (let i = 0; i < execCount; i++) {
         let result = await doSecKill();
@@ -204,6 +204,7 @@ async function doSecKill() {
     let result = await magicJS.http.post(options).then(response => {
         try {
             let rspData = response.body;
+            magicJS.logger.info(`response=${JSON.stringify(response)}`);
             magicJS.logger.info(`rspData=${JSON.stringify(rspData)}`);
             return rspData;
         } catch (e) {