Ver Fonte

code expire time

laowu há 2 semanas atrás
pai
commit
b4f2a12b53
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      app/Models/GamePhoneVerityCode.php

+ 3 - 3
app/Models/GamePhoneVerityCode.php

@@ -83,9 +83,9 @@ class GamePhoneVerityCode extends Model
             }
 
             // 验证码过期
-//            if (time() - strtotime($first->CreateDate) > 600) {
-//                return 3;
-//            }
+            if (time() - strtotime($first->CreateDate) > 600) {
+                return 3;
+            }
 
             \Log::info('timeCheck',[time(),date('Y-m-d H:i:s'),strtotime(date('Y-m-d H:i:s')),'ssstime',$first->CreateDate,strtotime($first->CreateDate)]);