|
|
@@ -795,10 +795,13 @@ function seekWidgets(widgets, namePaths, layer = 0) {
|
|
|
|
|
|
async function doGrabCoupon(activityCode, activityValue) {
|
|
|
let result = await queryCustomerActivityStatus(activityCode, activityValue);
|
|
|
+ magicJS.logger.info(`doGrabCoupon test#0`);
|
|
|
if (result) {
|
|
|
result.responseCode == '000000';
|
|
|
+ magicJS.logger.info(`doGrabCoupon test#1`);
|
|
|
}
|
|
|
if (result && result.responseCode == '000000') {
|
|
|
+ magicJS.logger.info(`doGrabCoupon test#2`);
|
|
|
result = await sendCustomerOffer(activityCode, activityValue);
|
|
|
}
|
|
|
return result;
|