add-admin-refund_time

This commit is contained in:
lccsw
2022-05-13 16:52:01 +08:00
parent 1edb72f717
commit 6d93e5649a
@@ -950,9 +950,9 @@ class Orders extends HD_Controller
if(!$row){
return $this->show_json(SYS_CODE_FAIL, '订单不存在');
}
$res = $this->receiver_orders_v2_model->update(['status'=>2],['id'=>$id]);
$res = $this->receiver_orders_v2_model->update(['status'=>2,'refund_time'=>date('Y-m-d H:i:s')],['id'=>$id]);
if($res){
$this->app_liche_orders_model->update(['status'=>-1],['o_id'=>$row['id']]);
$this->app_liche_orders_model->update(['stat4us'=>-1],['o_id'=>$row['id']]);
return $this->show_json(SYS_CODE_SUCCESS, '修改成功');
}else{
return $this->show_json(SYS_CODE_FAIL, '保存失败');