20240603
This commit is contained in:
@@ -28,6 +28,7 @@ class Cusorder extends Wxapp
|
||||
$this->load->model("biz/biz_model");
|
||||
|
||||
$this->load->library('receiver/customers_entity');
|
||||
$this->load->library('receiver/orders_entity');
|
||||
$this->load->library('receiver/order_datas_entity');
|
||||
$this->biz_id = $this->get_biz_id();
|
||||
}
|
||||
@@ -112,6 +113,8 @@ class Cusorder extends Wxapp
|
||||
//更新客户
|
||||
$this->customers_model->update(['status' => 2, 'order_time' => date('Y-m-d H:i:s')], ['id' => $cus_id]);
|
||||
$this->customers_entity->add_log($cus_id, $this->session['uid'], $this->session['uname'], '生成订单', 6);
|
||||
//数据提交汽车之家
|
||||
$this->orders_entity->post_auto($o_id);
|
||||
return ['id' => $o_id];
|
||||
} else {
|
||||
throw new Exception('创建失败', ERR_PARAMS_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user