Ken 1 هفته پیش
والد
کامیت
8b7cef4466
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  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);
+        }
     }
 
     /**