shawenguan 1 năm trước cách đây
mục cha
commit
ef7ddb095a
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      Scripts/jhsh/jhshHelper.js

+ 10 - 0
Scripts/jhsh/jhshHelper.js

@@ -140,6 +140,7 @@ function checkHandleRequest() {
                 case 'A3341C114':
                     // 门店相关的优惠券
                     handleStoreCouponList();
+                    break;
                 default:
                     break;
             }
@@ -209,6 +210,10 @@ function checkHandleRequest() {
                     case 'A3341O059':
                         //
                         break;
+                    case 'A3341O097':
+                        // 购买代金券
+                        break;
+
                     default:
                         break;
                 }
@@ -607,6 +612,10 @@ function handleCouponDetail(){
                 const key = info.DATA_TYPE_EDD;
                 tmpDict[key] = info;
             }
+
+            if(tmpDict['01']){
+                tmpDict['01'].Rght_Cntnt = '*************采集成功*************\n'+tmpDict['03'].Rght_Cntnt;
+            }
             if(tmpDict['03']){
                 drawTmDescText = `${tmpDict['03'].Rght_Cntnt}\n`;
                 drawTmDescText += `开始领取时间:${lk.formatDate(actStartDate, "yyyy-MM-dd HH:mm:ss")}\n`;
@@ -968,6 +977,7 @@ async function checkSignIn(loginInfo, signActInfo){
                 }
             }
             if(couponInfo){
+                lk.log(JSON.stringify(couponInfo));
                 const result = await getSignInReward(signActInfo, couponInfo, 'A3341C120');
                 return result;
             }