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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
+
+ 身份证号码:=$info_json['c_cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
+
+ 身份证号码:=$info_json['c_cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
+
+ 身份证号码:=$info_json['c_cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
diff --git a/api/views/wxapp/licheb/html2pdf/car_fh.php b/api/views/wxapp/licheb/html2pdf/car_fh.php
index d5763f05..f6182c32 100644
--- a/api/views/wxapp/licheb/html2pdf/car_fh.php
+++ b/api/views/wxapp/licheb/html2pdf/car_fh.php
@@ -11,7 +11,9 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
- 身份证号码:=$cardid?>
+
+ 身份证号码:=$info_json['c_cardid']?$info_json['c_cardid']:$info_json['cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
+
+ 身份证号码:=$info_json['c_cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
+
+ 身份证号码:=$info_json['c_cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
+
+ 身份证号码:=$info_json['c_cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>
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 @@
甲方(出卖人):=$company['title']?>
统一社会信用代码:=$company['credit_code']?>
乙方(买受人):=$name?>
- 身份证号码:=$cardid?>
+
+ 身份证号码:=$info_json['c_cardid']?$info_json['c_cardid']:$info_json['cardid']?>
+ }?>
联系电话:=$mobile?>
委托代理人:=$info_json['entrust_name']?>