Kirin %!s(int64=2) %!d(string=hai) anos
pai
achega
f0aa601afa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/services/user/UserExtractServices.php

+ 1 - 1
app/services/user/UserExtractServices.php

@@ -498,7 +498,7 @@ class UserExtractServices extends BaseServices
         if (!$user) {
             throw new ValidateException('数据不存在');
         }
-        if ($user['is_auth'] != 2) return app('json')->fail('请先完成实名认证');
+        if ($user['is_auth'] != 2) throw new ValidateException('请先完成实名认证');
         $uids = $userService->search()->where('card_id', $user['card_id'])->column('uid');
         if (UserExtract::where('uid', 'in', $uids)
             ->whereTime('add_time', 'month')