zhanwencai 1 年間 前
コミット
0d3df78ad0
1 ファイル変更2 行追加2 行削除
  1. 2 2
      script/module/role/NewLogic.lua

+ 2 - 2
script/module/role/NewLogic.lua

@@ -402,7 +402,7 @@ function NewProto(human, type, param)
 
                 if tb[3] then
                     human.db.isTip = human.db.isTip or 1
-                    human.db.isTip = tb[3]
+                    human.db.isTip = tonumber(tb[3])
                 end
             elseif quickType == 3 then
                 human.db.adHatchRewardCnt = human.db.adHatchRewardCnt or 0
@@ -572,5 +572,5 @@ end
 -- 获取是否今日不再提示
 function getTodayIsTip(human)
     local isTip = human.db.isTip or 1
-    return isTip
+    return tonumber(isTip)
 end