shawenguan před 1 rokem
rodič
revize
94fcfc807f
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      Scripts/pingan/pinganIkea.js

+ 3 - 0
Scripts/pingan/pinganIkea.js

@@ -795,6 +795,9 @@ function seekWidgets(widgets, namePaths, layer = 0) {
 
 async function doGrabCoupon(activityCode, activityValue) {
     let result = await queryCustomerActivityStatus(activityCode, activityValue);
+    if (result) {
+        result.responseCode == '000000';
+    }
     if (result && result.responseCode == '000000') {
         result = await sendCustomerOffer(activityCode, activityValue);
     }