shawenguan 1 rok pred
rodič
commit
94fcfc807f
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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);
     }