orders edit_order fixbug zero_fistpay order_time

This commit is contained in:
qianhy
2023-04-25 12:07:01 +08:00
committed by lccsw
parent ebea2bf4dc
commit 4ed87cd091
@@ -479,6 +479,9 @@ class CusorderV2 extends Wxapp
'if_local_bill' => $if_local_bill ? 1 : 0,
'over_time' => $over_time,
];
if ($if_zero_firstpay && $row['order_time'] == '0000-00-00 00:00:00'){ //设置下定时间
$data['order_time'] = date('Y-m-d H:i:s');
}
$delry_time && $data['delry_time'] = $delry_time;
$finance_row && $data['finance_id'] = $finance_row['id'];
$data['if_fine'] = $if_fine ? 1 : 0;