cusorder put_ckcar add city=350600 and type=3 orders status about
This commit is contained in:
@@ -628,6 +628,18 @@ class Cusorder extends Wxapp{
|
||||
if($result){
|
||||
if($id>=Orders_v2_entity::V2_START_ID){
|
||||
$this->orders_status_entity->set_status($id,4,1);
|
||||
|
||||
# 20230309 狸车宝小程序,漳州市门店类型为【代理店】的订单,当销售顾问确认交车后,订单流程就结束,把客户确认及订单相应的状态都更新
|
||||
$this->load->model("biz/biz_model");
|
||||
$row_biz = $this->biz_model->get(array('id' => $order_row['biz_id']));
|
||||
if ($row_biz['city_id'] == 350600 && $row_biz['type'] == 3){
|
||||
# ref api\controllers\wxapp\liche\Protocol.php protected function post_ckcar()
|
||||
$this->orders_status_entity->set_status($id,4,2);
|
||||
$this->orders_status_entity->set_status($id,5,1);
|
||||
$this->receiver_orders_v2_model->update(['status'=>1,'ck_time'=>date('Y-m-d H:i:s')],['id'=>$id]);
|
||||
# ref api\controllers\wxapp\liche\Contract.php protected function post()
|
||||
# $this->order_deliverys_model->update(['status'=>2],['o_id'=>$id]); # 线上status=2的最新更新时间为 2022-10-24 16:10:51
|
||||
}
|
||||
}
|
||||
throw new Exception('修改成功', API_CODE_SUCCESS);
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user