|
- 身份证:
+ 身份证:=$cardid?>
|
联系电话:=$mobile?>
@@ -124,7 +124,7 @@
- 销售顾问:
+ 销售顾问:=$uname?>
日期:=$day?>
diff --git a/api/views/wxapp/licheb/protocol/car_fh.php b/api/views/wxapp/licheb/protocol/car_fh.php
index 3cf55049..8f07b341 100644
--- a/api/views/wxapp/licheb/protocol/car_fh.php
+++ b/api/views/wxapp/licheb/protocol/car_fh.php
@@ -19,7 +19,7 @@
|
- 身份证:
+ 身份证:=$cardid?>
|
联系电话:=$mobile?>
@@ -128,7 +128,7 @@
- 销售顾问:
+ 销售顾问:=$uname?>
日期:=$day?>
diff --git a/common/libraries/TcOrc.php b/common/libraries/TcOrc.php
index daa3f162..e71532d1 100644
--- a/common/libraries/TcOrc.php
+++ b/common/libraries/TcOrc.php
@@ -42,15 +42,15 @@ class TcOrc{
*/
public function IdentityCard($imageUrl,$CardSide='FRONT'){
//dev测试
- $this->ci->load->library('mycurl');
- $debug_url = 'http://104.194.86.23:8889/index.php';
- $params = [
- 'ImageUrl' => $imageUrl,
- 'CardSide' => $CardSide
- ];
- $result = $this->ci->mycurl->httpGet($debug_url,$params);
- $result = json_decode($result,true);
- return $result;
+ //$this->ci->load->library('mycurl');
+ //$debug_url = 'http://104.194.86.23:8889/index.php';
+ //$params = [
+ // 'ImageUrl' => $imageUrl,
+ // 'CardSide' => $CardSide
+ //];
+ //$result = $this->ci->mycurl->httpGet($debug_url,$params);
+ //$result = json_decode($result,true);
+ //return $result;
try {
$cred = new Credential($this->accessKeyId, $this->accessKeySecret);
$httpProfile = new HttpProfile();
diff --git a/common/libraries/receiver/Sign_entity.php b/common/libraries/receiver/Sign_entity.php
index 00077b31..e6748870 100644
--- a/common/libraries/receiver/Sign_entity.php
+++ b/common/libraries/receiver/Sign_entity.php
@@ -42,7 +42,7 @@ class Sign_entity{
!$s_path && $s_path = FCPATH.'temp/'.md5('sign'.$file_name).'.jpg';
$yhdata = file_get_contents($user_file,false,stream_context_create($arrContextOptions));
- $yh_image = Image::fromData($yhdata)->cropResize(150,150);
+ $yh_image = Image::fromData($yhdata)->cropResize(150,150)->rotate(-90);
//原始签名文件
@@ -98,7 +98,7 @@ class Sign_entity{
if(!$res){
return false;
}
- $yh_image = Image::open($imgPath)->cropResize(150,150);
+ $yh_image = Image::open($imgPath)->cropResize(150,150)->rotate(-90);
//原始签名文件
diff --git a/common/models/receiver/Receiver_customers_model.php b/common/models/receiver/Receiver_customers_model.php
index 9d4903af..1bba1a7b 100644
--- a/common/models/receiver/Receiver_customers_model.php
+++ b/common/models/receiver/Receiver_customers_model.php
@@ -17,6 +17,26 @@ class Receiver_customers_model extends HD_Model
{
parent::__construct($this->table_name, 'default');
}
+
+ /**
+ * Notes:根据id获取数据
+ * @param $ids array() id 数组
+ * @param string $fileds
+ * @return array
+ */
+ public function get_map_by_ids($ids, $fileds = '')
+ {
+ $rows = [];
+ if ($ids) {
+ $ids = array_filter($ids);
+ $cf_ids = implode(',', $ids);
+ $where = [
+ "id in ($cf_ids)" => null
+ ];
+ $rows = $this->map('id', '', $where, '', '', '', $fileds);
+ }
+ return $rows;
+ }
public function get_status(){
return $this->status_arr;
| |