shawenguan 1 năm trước cách đây
mục cha
commit
94fcfc807f
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);
     }