This commit is contained in:
lcc
2024-06-03 17:42:18 +08:00
parent eaf3f6089e
commit 1a8ecd1a56
10 changed files with 697 additions and 18 deletions
@@ -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);