Kirin 1 年間 前
コミット
e83e6a90d8
1 ファイル変更17 行追加17 行削除
  1. 17 17
      app/services/other/export/ExportServices.php

+ 17 - 17
app/services/other/export/ExportServices.php

@@ -886,23 +886,23 @@ class ExportServices extends BaseServices
         if (!empty($data)) {
             $i = 0;
             foreach ($data as $index => $item) {
-                if ($item['bank_address'] == '灵活用工提现' && $item['status'] == 0) {
-                    $userServices = app()->make(UserServices::class);
-                    $userInfo = $userServices->get($item['uid']);
-                    if (!$userInfo['professional_id']) {
-                        throw new UnavailableException('用户未认证签约');
-                    }
-                    $bankInfo = WithdrawService::init()::contractInfo($userInfo['enterprise_professional_facilitator_id']);
-                    if (!$bankInfo['sign_img']) throw new UnavailableException('用户未签约');
-                    $one_data = [
-                        'bank_code' => $bankInfo['bank_code'],
-                        'real_name' => $bankInfo['name'],
-                        'bank_address' => '未知',
-                        'extract_price' => $item['extract_price'],
-                        'mark' => '工资发放',
-                        'status' => ($item['status'] == 1 ? '通过' : ($item['status'] == 0 ? '申请中' : '未通过'))
-                    ];
-                } else
+//                if ($item['bank_address'] == '灵活用工提现' && $item['status'] == 0) {
+//                    $userServices = app()->make(UserServices::class);
+//                    $userInfo = $userServices->get($item['uid']);
+//                    if (!$userInfo['professional_id']) {
+//                        throw new UnavailableException('用户未认证签约');
+//                    }
+//                    $bankInfo = WithdrawService::init()::contractInfo($userInfo['enterprise_professional_facilitator_id']);
+//                    if (!$bankInfo['sign_img']) throw new UnavailableException('用户未签约');
+//                    $one_data = [
+//                        'bank_code' => $bankInfo['bank_code'],
+//                        'real_name' => $bankInfo['name'],
+//                        'bank_address' => '未知',
+//                        'extract_price' => $item['extract_price'],
+//                        'mark' => '工资发放',
+//                        'status' => ($item['status'] == 1 ? '通过' : ($item['status'] == 0 ? '申请中' : '未通过'))
+//                    ];
+//                } else
                     $one_data = [
                         'bank_code' => $item['bank_code'],
                         'real_name' => $item['real_name'],