Ken hai 1 semana
pai
achega
8b7cef4466
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      app/Services/PublicService.php

+ 5 - 1
app/Services/PublicService.php

@@ -44,7 +44,11 @@ class PublicService extends BaseService
             }
             $user->register_ip = $registerIp;
         }
-        $user->save();
+        try {
+            $user->save();
+        }catch (Exception $e){
+            throw new Exception('验证失败', HttpStatus::CUSTOM_ERROR);
+        }
     }
 
     /**