From 4dbd9203cc516a8b65561fb5e2fcb9be680b5c8e Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Fri, 9 Sep 2022 12:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/Index.php b/app/controller/Index.php index 36ec575..f177f9f 100644 --- a/app/controller/Index.php +++ b/app/controller/Index.php @@ -54,7 +54,7 @@ class Index extends BaseController } $offset = ($page - 1) * $limit; $map = $this->getQueryCondition($params); - $jobs_name = ['0' => '']; + $jobs_name = []; if (isset($params['is_check_peer_phone']) && $params['is_check_peer_phone'] > 0) { $params['data_check'] = 'car_phone_check'; } @@ -148,6 +148,8 @@ class Index extends BaseController $jobs_name = $jobs_name + $export_name; } foreach ($list as &$item) { + $jobs_name[$item['is_export_bhx']] = $jobs_name[$item['is_export_bhx']] ?? JobsT::find($item['is_export_bhx']); + $jobs_name[$item['is_export_bmc']] = $jobs_name[$item['is_export_bmc']] ?? JobsT::find($item['is_export_bmc']); $item['export_bhx_name'] = $jobs_name[$item['is_export_bhx']]['queue'] ?? ''; $item['export_bmc_name'] = $jobs_name[$item['is_export_bmc']]['queue'] ?? ''; $item['bhx_download_times'] = $jobs_name[$item['is_export_bhx']]['download_times'] ?? 0;