浏览代码

活动异常

makela 2 周之前
父节点
当前提交
0b65424d66
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      project/model/activitytimemod.lua

+ 10 - 0
project/model/activitytimemod.lua

@@ -137,6 +137,16 @@ local function jqui_activity(character, activity_data_time)
             if pinfo.state == STATE_CLOSE then
                 ok = continue_open_update(atype, ainfo)     -- 活动续开
             else
+                if pinfo.opentime ~= ainfo.opentime then
+                    pinfo.opentime = ainfo.opentime
+                    save_token = true
+                elseif pinfo.endtime ~= ainfo.endtime then
+                    pinfo.endtime = ainfo.endtime
+                    save_token = true
+                elseif pinfo.switch ~= ainfo.switch then
+                    pinfo.switch = ainfo.switch
+                    save_token = true
+                end
                 ok = true
             end
         end