From a7bef448ef7cfef207f09a74f8663c76888ab5ec Mon Sep 17 00:00:00 2001 From: lccsw <1127794702@qq.com> Date: Tue, 31 Aug 2021 15:24:52 +0800 Subject: [PATCH] edit-api-contract-content --- api/controllers/wxapp/liche/Contract.php | 7 +++++-- api/controllers/wxapp/licheb/Cusorder.php | 2 +- api/views/wxapp/licheb/html2pdf/agent.php | 3 +++ api/views/wxapp/licheb/html2pdf/car.php | 3 +++ api/views/wxapp/licheb/html2pdf/car_ck.php | 3 +++ api/views/wxapp/licheb/html2pdf/car_fh.php | 4 +++- api/views/wxapp/licheb/protocol/agent.php | 3 +++ api/views/wxapp/licheb/protocol/car.php | 3 +++ api/views/wxapp/licheb/protocol/car_ck.php | 3 +++ api/views/wxapp/licheb/protocol/car_fh.php | 4 +++- 10 files changed, 30 insertions(+), 5 deletions(-) diff --git a/api/controllers/wxapp/liche/Contract.php b/api/controllers/wxapp/liche/Contract.php index e20f5c9f..10a7957f 100644 --- a/api/controllers/wxapp/liche/Contract.php +++ b/api/controllers/wxapp/liche/Contract.php @@ -97,11 +97,11 @@ class Contract extends Wxapp{ $img = $this->input_param('img'); $row = $this->contracts_model->get(['type'=>$type,'o_id'=>$id]); - $order = $this->orders_model->get(['id'=>$id],'biz_id,ifentrust,pack_id'); - + $order = $this->orders_model->get(['id'=>$id],'biz_id,ifentrust,pack_id,info_json'); if(!$row['file'] || !$img){ throw new Exception('参数错误', API_CODE_INVILD_PARAM); } + $jsondata = json_decode($order['info_json'],true); if($row['status']==1){ throw new Exception('已签名', API_CODE_INVILD_PARAM); @@ -139,6 +139,7 @@ class Contract extends Wxapp{ case 0: //整车 $sign_img = array_pop($imgs); $height = $order['ifentrust'] ? 480 : 380; + $jsondata['c_cardid'] && $height += 30; $res = $sign_entity->merge($sign_img,$img,1070,$height,230); if(!$res){ throw new Exception('签名失败', API_CODE_INVILD_PARAM); @@ -163,6 +164,7 @@ class Contract extends Wxapp{ $package = $this->package_model->get(['id'=>$order['pack_id']],'srv_ids'); $srv_count = $package ? count(explode(',',$package['srv_ids'])) : 0; $height = $order['ifentrust'] ? 1400 : 1280; + $jsondata['c_cardid'] && $height += 30; $height += $srv_count*52; $res = $sign_entity->merge($sign_img,$img,1050,$height,300); if(!$res){ @@ -188,6 +190,7 @@ class Contract extends Wxapp{ case 2: //确认信息 $sign_img = array_pop($imgs); $height = $order['ifentrust'] ? 600 : 480; + $jsondata['c_cardid'] && $height += 30; $res = $sign_entity->merge($sign_img,$img,1050,$height,300); if(!$res){ throw new Exception('签名失败', API_CODE_INVILD_PARAM); diff --git a/api/controllers/wxapp/licheb/Cusorder.php b/api/controllers/wxapp/licheb/Cusorder.php index 73e09a61..9a84fb80 100644 --- a/api/controllers/wxapp/licheb/Cusorder.php +++ b/api/controllers/wxapp/licheb/Cusorder.php @@ -63,7 +63,7 @@ class Cusorder extends Wxapp{ $row = $this->customers_model->get(['id'=>$cus_id]); $series_row = $this->auto_series_model->get(['id'=>$car_id]); - if(!$row || !$series_row){ + if(!$row || !$series_row || !$cardid || !$address){ throw new Exception('参数错误', ERR_PARAMS_ERROR); } //判断是否存在未完成流程 diff --git a/api/views/wxapp/licheb/html2pdf/agent.php b/api/views/wxapp/licheb/html2pdf/agent.php index 1b12a930..5f5584f9 100644 --- a/api/views/wxapp/licheb/html2pdf/agent.php +++ b/api/views/wxapp/licheb/html2pdf/agent.php @@ -35,6 +35,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/html2pdf/car.php b/api/views/wxapp/licheb/html2pdf/car.php index 9630dffa..c3cf50d1 100644 --- a/api/views/wxapp/licheb/html2pdf/car.php +++ b/api/views/wxapp/licheb/html2pdf/car.php @@ -12,6 +12,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/html2pdf/car_ck.php b/api/views/wxapp/licheb/html2pdf/car_ck.php index 75823448..ba151e4c 100644 --- a/api/views/wxapp/licheb/html2pdf/car_ck.php +++ b/api/views/wxapp/licheb/html2pdf/car_ck.php @@ -11,6 +11,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/html2pdf/car_fh.php b/api/views/wxapp/licheb/html2pdf/car_fh.php index 01ebe32f..2e37f19f 100644 --- a/api/views/wxapp/licheb/html2pdf/car_fh.php +++ b/api/views/wxapp/licheb/html2pdf/car_fh.php @@ -11,7 +11,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
-
身份证号码:
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/protocol/agent.php b/api/views/wxapp/licheb/protocol/agent.php index 4b2c45b4..176f0315 100644 --- a/api/views/wxapp/licheb/protocol/agent.php +++ b/api/views/wxapp/licheb/protocol/agent.php @@ -16,6 +16,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/protocol/car.php b/api/views/wxapp/licheb/protocol/car.php index 395ce9ff..6125f446 100644 --- a/api/views/wxapp/licheb/protocol/car.php +++ b/api/views/wxapp/licheb/protocol/car.php @@ -16,6 +16,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/protocol/car_ck.php b/api/views/wxapp/licheb/protocol/car_ck.php index 171779ac..aa75dbce 100644 --- a/api/views/wxapp/licheb/protocol/car_ck.php +++ b/api/views/wxapp/licheb/protocol/car_ck.php @@ -15,6 +15,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
+ +
身份证号码:
+
联系电话:
委托代理人:
diff --git a/api/views/wxapp/licheb/protocol/car_fh.php b/api/views/wxapp/licheb/protocol/car_fh.php index 93e236b0..897d005a 100644 --- a/api/views/wxapp/licheb/protocol/car_fh.php +++ b/api/views/wxapp/licheb/protocol/car_fh.php @@ -15,7 +15,9 @@
甲方(出卖人):
统一社会信用代码:
乙方(买受人):
-
身份证号码:
+ +
身份证号码:
+
联系电话:
委托代理人: