Browse Source

在线好礼增加剩余天数提示

gitxsm 1 year ago
parent
commit
7a42489195
2 changed files with 2 additions and 0 deletions
  1. 1 0
      script/module/present/OnlineAwardLogic.lua
  2. 1 0
      script/module/present/Proto.lua

+ 1 - 0
script/module/present/OnlineAwardLogic.lua

@@ -320,6 +320,7 @@ function Query(human)
         msgRet.isReach = 1
     end
 
+    msgRet.remainingDays = math.max(#onlineAardCfg - targetDay, 0)
 
     local msgAwardVec = msgRet.awardVec
     msgAwardVec[0] = 0

+ 1 - 0
script/module/present/Proto.lua

@@ -985,6 +985,7 @@ GC_ONLINEAWARD_QUERY = {
     {"leftTime",            1,  "int"},                --领取下一档奖励的倒计时
     {"needRecharge",        1,  "double"},             --当日领奖需要充值金额
     {"isReach",             1,  "byte"},               --是否充值达标,0-未达标,1-达标
+    {"remainingDays",       1,  "byte"},               --剩余天数
 }