Browse Source

活动异常

makela 2 weeks ago
parent
commit
0b65424d66
1 changed files with 10 additions and 0 deletions
  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
             if pinfo.state == STATE_CLOSE then
                 ok = continue_open_update(atype, ainfo)     -- 活动续开
                 ok = continue_open_update(atype, ainfo)     -- 活动续开
             else
             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
                 ok = true
             end
             end
         end
         end