Kaynağa Gözat

会员升级

Kirin 1 yıl önce
ebeveyn
işleme
f0aa601afa
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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')