修改退回代码BUG

dev
曾超新 5 years ago
parent 25ab22186d
commit 79dae0d1ad
  1. 6
      frontend/controllers/InsurerController.php

@ -2034,7 +2034,7 @@ class InsurerController extends BaseController
if($request->isPost) {
$order_id = $request->post('order_id',0);
$return_status_id = $request->post('return_status_id',0);
$return_status_id = $request->post('return_status_id',2);
$return_remark = $request->post('return_remark');
$tran = OrderT::getDb()->beginTransaction();
@ -2046,7 +2046,8 @@ class InsurerController extends BaseController
}
$row->status_id = 1;
$row->return_status_id = $return_status_id;
$row->return_status_id = $row->status_id;
if($row->return_status_id == 0) $row->return_status_id = 2;
$row->return_remark = $return_remark;
$row->return_time = time();
// if($return_status_id == 2) {
@ -3721,6 +3722,7 @@ class InsurerController extends BaseController
// 订单信息更新
$order_info->return_status_id = $order_info->status_id;
if($order_info->return_status_id == 0) $order_info->return_status_id = 2;
$order_info->lock_id = 0;
$order_info->status_id = 1;
$order_info->return_remark = $return_remark;

Loading…
Cancel
Save