From e08d7ccc3bc39ca031476321ae6bb2d1418e4e45 Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Wed, 1 Jun 2022 16:01:49 +0800 Subject: [PATCH] edit-api-pay_after --- admin/libraries/Ordersv2List.php | 2 ++ api/controllers/wxapp/liche/Order.php | 6 +++++- api/controllers/wxapp/liche/Protocol.php | 20 ++++++++++++++------ api/controllers/wxapp/licheb/CusorderV2.php | 4 ++-- 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/admin/libraries/Ordersv2List.php b/admin/libraries/Ordersv2List.php index c60a9cb5..da5e7e71 100644 --- a/admin/libraries/Ordersv2List.php +++ b/admin/libraries/Ordersv2List.php @@ -323,6 +323,7 @@ class Ordersv2List $fields['name'] = $size > 1000 ? $val['name'] : '' . $val['name'] . $o_tp . '
' . $val['mobile'] . '
'; } + $fields['id_card'] = $info_json['c_owner_cardid']; $fields['mobile'] = $mobile; $fields['car_name'] = "{$brand_name}-{$series_name}-{$v_name}-{$cor_name}"; $fields['price_car'] = number_format($money_json['price_car'],2); @@ -557,6 +558,7 @@ class Ordersv2List $fields['over_time'] = ['title' => '止交付时间']; $fields['order_time'] = ['title' => '下定时间']; $fields['bill_time'] = ['title' => '开票时间']; + $fields['id_card'] = ['title' => '身份证']; } return $fields; } diff --git a/api/controllers/wxapp/liche/Order.php b/api/controllers/wxapp/liche/Order.php index 5fe7da4b..96db0786 100644 --- a/api/controllers/wxapp/liche/Order.php +++ b/api/controllers/wxapp/liche/Order.php @@ -30,6 +30,7 @@ class Order extends Wxapp{ $this->load->model('auto/auto_series_model'); $this->load->model('auto/auto_brand_model'); $this->load->model('auto/auto_attr_model'); + $this->load->model("biz/biz_model"); $this->load->model('app/liche/app_liche_orders_model'); $this->load->library('receiver/orders_v2_entity'); @@ -221,7 +222,10 @@ class Order extends Wxapp{ } } $show_agree = true; - $order['brand_id'] == 4 && $show_agree = false; + if($order['brand_id'] == 4) { //除宁德哪吒需要购车合同 + $biz = $this->biz_model->get(['id'=>$order['biz_id']],'city_id'); + $show_agree = $biz['city_id'] == '350900'||$order['srv_ids'] ? true : false; + } $ckcar_status = false; $agent_ck = $this->receiver_order_status_model->count(['o_id'=>$val['o_id'],'status'=>1,'pid_status'=>4]); $user_ck = $this->receiver_order_status_model->count(['o_id'=>$val['o_id'],'status'=>2,'pid_status'=>4]); diff --git a/api/controllers/wxapp/liche/Protocol.php b/api/controllers/wxapp/liche/Protocol.php index 8ab7a8fc..72ccf4a5 100644 --- a/api/controllers/wxapp/liche/Protocol.php +++ b/api/controllers/wxapp/liche/Protocol.php @@ -70,7 +70,14 @@ require_once APPPATH.'controllers/wxapp/Wxapp.php';
经充分协商,双方约定:
{$fill_info['sa']}
"; } - $car_html = "
汽车购买协议
+ $show_car_pro = true; + if($this->order_row['brand_id'] == 4) { //除宁德哪吒需要购车合同 + $this->load->model("biz/biz_model"); + $biz = $this->biz_model->get(['id'=>$this->$row['biz_id']],'city_id'); + $show_car_pro = $biz['city_id'] == '350900' ? true : false; + } + if($show_car_pro) { + $car_html = "
汽车购买协议
编号【{$row['sid']}】
本《汽车购买协议》(“本协议”),由您(“狸车用户”)与下述签署本协议的狸车销售公司或其关联公司 (以下统称“狸车公司”),于本协议附件一所载明的协议签署日签署。
@@ -117,11 +124,12 @@ require_once APPPATH.'controllers/wxapp/Wxapp.php';
2.整车尾款(元):{$fill_info['last_price']}
{$sa_div}
"; - $list[] = [ - 'title' => '购车协议', - 'url' => '', - 'content' => $car_html - ]; + $list[] = [ + 'title' => '购车协议', + 'url' => '', + 'content' => $car_html + ]; + } if($row['srv_ids']){ $service_str = implode('
',$fill_info['services']); $agent_html = "
委托服务协议
diff --git a/api/controllers/wxapp/licheb/CusorderV2.php b/api/controllers/wxapp/licheb/CusorderV2.php index ea2f6432..fc23e1de 100644 --- a/api/controllers/wxapp/licheb/CusorderV2.php +++ b/api/controllers/wxapp/licheb/CusorderV2.php @@ -947,12 +947,12 @@ class CusorderV2 extends Wxapp{ if($is_pay){ //存在已支付订单并且修改信息 写日志 $content = []; if($owner_name!=$row['owner_name']){ - $content[] = "车姓名由 {$row['owner_name']} 变更为 {$owner_name}"; + $content[] = "车主姓名由 {$row['owner_name']} 变更为 {$owner_name}"; $owner_a = $row['owner_name']; $owner_b = $owner_name; } if($owner_mobile!=$row['owner_mobile']){ - $content[] = "车手机号由 {$row['owner_mobile']} 变更为 {$owner_mobile}"; + $content[] = "车主手机号由 {$row['owner_mobile']} 变更为 {$owner_mobile}"; $owner_a = $row['owner_mobile']; $owner_b = $owner_mobile; }