Explorar o código

code expire time

laowu hai 2 semanas
pai
achega
b4f2a12b53
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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)]);