From e8f07f4292d7b92b945f1c9ac6adf061ae813ad1 Mon Sep 17 00:00:00 2001 From: liuweiwen <“529520975@qq.com> Date: Tue, 18 Feb 2020 18:08:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E6=A0=BC=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PartnerController.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PartnerController.class.php b/Application/Admin/Controller/PartnerController.class.php index e83c28bcb..2f96fe607 100644 --- a/Application/Admin/Controller/PartnerController.class.php +++ b/Application/Admin/Controller/PartnerController.class.php @@ -377,8 +377,12 @@ class PartnerController extends ThinkController if (empty($data)) { $this->error('数据异常', U('lists')); } - $data['contract_start_time'] = date('Y-m-d', $data['contract_start_time']); - $data['contract_end_time'] = date('Y-m-d', $data['contract_end_time']); + if ($data['contract_start_time']) { + $data['contract_start_time'] = date('Y-m-d', $data['contract_start_time']); + } + if ($data['contract_end_time']) { + $data['contract_end_time'] = date('Y-m-d', $data['contract_end_time']); + } $data['channel_rate'] *= 100;//存的是小数,显示百分比 $data['invoice_rate'] *= 100;//存的是小数,显示百分比 // dd($data);