Explorar el Código

code expire time

laowu hace 2 semanas
padre
commit
b4f2a12b53
Se han modificado 1 ficheros con 3 adiciones y 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)]);