Browse Source

会员升级

Kirin 1 year ago
parent
commit
9e9d7bc9a3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/services/user/UserExtractServices.php

+ 3 - 0
app/services/user/UserExtractServices.php

@@ -383,6 +383,9 @@ class UserExtractServices extends BaseServices
         if (!$user) {
             throw new ValidateException('数据不存在');
         }
+        if (!$user['enterprise_professional_facilitator_id']) {
+            throw new ValidateException('签约未完成');
+        }
         $bank_info = WithdrawService::init()::contractInfo($user['enterprise_professional_facilitator_id']);
         if (!$bank_info['is_contract']) {
             throw new ValidateException('签约未完成');