日期格式修改

master
liuweiwen 5 years ago
parent 5b63a2fe84
commit e8f07f4292

@ -377,8 +377,12 @@ class PartnerController extends ThinkController
if (empty($data)) { if (empty($data)) {
$this->error('数据异常', U('lists')); $this->error('数据异常', U('lists'));
} }
if ($data['contract_start_time']) {
$data['contract_start_time'] = date('Y-m-d', $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['contract_end_time'] = date('Y-m-d', $data['contract_end_time']);
}
$data['channel_rate'] *= 100;//存的是小数,显示百分比 $data['channel_rate'] *= 100;//存的是小数,显示百分比
$data['invoice_rate'] *= 100;//存的是小数,显示百分比 $data['invoice_rate'] *= 100;//存的是小数,显示百分比
// dd($data); // dd($data);

Loading…
Cancel
Save