makela 2 tygodni temu
rodzic
commit
0b65424d66
1 zmienionych plików z 10 dodań i 0 usunięć
  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