소스 검색

2天一刷新加判定

cyzhao 8 달 전
부모
커밋
b1b36fc74b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Gameserver/App/process/UserProc.php

+ 1 - 1
Gameserver/App/process/UserProc.php

@@ -493,7 +493,7 @@ class UserProc {
         $curDay = TimeUtil::totalDays();
         $nextDay = TimeUtil::totalDays(ctx()->privateState->nextDayLogin);
                                     
-        if ($curDay - $nextDay >= 2) {
+        if (ctx()->privateState->nextDayLogin > 0 && $curDay - $nextDay >= 2) {
             ActiveProc::ResetLimitTsBuy();
         }
     }