Browse Source

会员升级

Kirin 1 year ago
parent
commit
eada94097e
1 changed files with 25 additions and 25 deletions
  1. 25 25
      app/services/other/export/ExportServices.php

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

@@ -886,31 +886,31 @@ class ExportServices extends BaseServices
         if (!empty($data)) {
             $i = 0;
             foreach ($data as $index => $item) {
-                if ($item['bank_address'] == '灵活用工提现') {
-                    $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'],
-                        'bank_address' => $item['bank_address'],
-                        'extract_price' => $item['extract_price'],
-                        'mark' => '工资发放',
-                        'status' => ($item['status'] == 1 ? '通过' : ($item['status'] == 0 ? '申请中' : '未通过'))
-                    ];
+//                if ($item['bank_address'] == '灵活用工提现') {
+//                    $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'],
+                    'bank_address' => $item['bank_address'],
+                    'extract_price' => $item['extract_price'],
+                    'mark' => '工资发放',
+                    'status' => ($item['status'] == 1 ? '通过' : ($item['status'] == 0 ? '申请中' : '未通过'))
+                ];
                 if ($type == 1) {
                     $export[] = $one_data;
                     if ($i == 0) {