Kirin %!s(int64=2) %!d(string=hai) anos
pai
achega
9e9d7bc9a3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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('签约未完成');