|
@@ -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')
|