diff --git a/admin/controllers/receiver/Orders.php b/admin/controllers/receiver/Orders.php index 5f0c607b..ef1339e8 100644 --- a/admin/controllers/receiver/Orders.php +++ b/admin/controllers/receiver/Orders.php @@ -505,13 +505,14 @@ class Orders extends HD_Controller if ($params['status'] == 2) { //设置等待放款 $this->orders_model->update(['status' => 2], ['id' => $row['o_id']]); $ckcar = $this->order_ckcars_model->get(['o_id' => $row['o_id']]); - $replace = [ - 'o_id' => $row['o_id'], - 'status' => 0, - 'c_time' => time() - ]; - $ckcar && $replace['id'] = $ckcar['id']; - $this->order_ckcars_model->replace($replace); + if(!$ckcar){ + $replace = [ + 'o_id' => $row['o_id'], + 'status' => 0, + 'c_time' => time() + ]; + $this->order_ckcars_model->add($replace); + } } elseif ($params['status'] == 3) { //设置完成按揭 $order_row = $this->orders_model->get(['id' => $row['o_id']], 'status'); if ($order_row['status'] > 2) { diff --git a/admin/views/receiver/orders/get.php b/admin/views/receiver/orders/get.php index 61ba0346..4dd4e4fe 100644 --- a/admin/views/receiver/orders/get.php +++ b/admin/views/receiver/orders/get.php @@ -403,12 +403,12 @@ }, carModal: function () { var that = this - if (!that.info.payway) { - if (!that.info.loan_info || that.info.loan_info.status < 2) { - layer.msg('按揭审核尚未通过~', {icon: 2}); - return; - } - } + //if (!that.info.payway) { + // if (!that.info.loan_info || that.info.loan_info.status < 2) { + // layer.msg('按揭审核尚未通过~', {icon: 2}); + // return; + // } + //} that.setauto(1); that.setauto(2); that.setauto(3);