liche update for admin order upload bill not update item bill time bug

This commit is contained in:
xxb
2021-09-15 11:09:36 +08:00
parent 2a6268fb67
commit b70a503142
+1 -1
View File
@@ -303,7 +303,7 @@ class Orders extends HD_Controller{
$row_order = $this->orders_model->get(array('id' => $row['o_id']));
if($row_order){
$this->load->model('items/items_model');
$upd = array('bill_time' => time());
$upd = array('bill_time' => date('Y-m-d H:i:s'));
$where = array('id' => $row_order['item_id']);
$ret = $this->items_model->update($upd, $where);
}