This commit is contained in:
xman 2025-04-18 15:09:26 +08:00
parent 417c62ce37
commit a45046c5f0

View File

@ -196,10 +196,10 @@ class Aftersale extends Backend
$params['refund_amount'] = bcadd($params['company_refund_amount'],$params['worker_refund_amount'],2);
if(empty($params['company_refund_time'])){
unset($params['company_refund_time']);
$params['company_refund_time'] = date('Y-m-d H:i:s');
}
if(empty($params['worker_refund_time'])){
unset($params['worker_refund_time']);
$params['worker_refund_time'] = date('Y-m-d H:i:s');
}
$result = $row->allowField(true)->save($params);