瀏覽代碼

修复mozhu bug

mafei 1 年之前
父節點
當前提交
e70dd039bc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      script/module/mozhu/MoZhuMiddleLogic.lua

+ 1 - 1
script/module/mozhu/MoZhuMiddleLogic.lua

@@ -42,7 +42,7 @@ function onHour(hour)
         return
         return
     end
     end
     local mozhuData = MoZhuDB.getMoZhu()
     local mozhuData = MoZhuDB.getMoZhu()
-	if not next(mozhuData) or Util.isSameDay(mozhuData.time) then
+	if not next(mozhuData) or not Util.isSameDay(mozhuData.time) then
         MoZhuDB.initMoZhu()
         MoZhuDB.initMoZhu()
         mozhuData = MoZhuDB.getMoZhu()
         mozhuData = MoZhuDB.getMoZhu()
     end
     end