add-api-idnum_ck
This commit is contained in:
@@ -361,10 +361,15 @@ class Orders extends HD_Controller
|
||||
} else {
|
||||
//校验姓名
|
||||
$uname = $result['data']['Name'];
|
||||
$idnum = $result['data']['IdNum'];
|
||||
$row_order = $this->receiver_orders_v2_model->get(['id' => $o_id]);
|
||||
$info_json = json_decode($row_order['info_json'],true);
|
||||
if ($uname != $row_order['name']) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '身份证姓名与客户不一致');
|
||||
}
|
||||
if ($idnum != $info_json['c_owner_cardid']) {
|
||||
return $this->show_json(SYS_CODE_FAIL, '身份证号码与客户不一致');
|
||||
}
|
||||
}
|
||||
|
||||
$upd = array(
|
||||
|
||||
@@ -119,6 +119,7 @@ class Cusorderdata extends Wxapp{
|
||||
if(!$row){
|
||||
throw new Exception('参数错误', ERR_PARAMS_ERROR);
|
||||
}
|
||||
$info_json = json_decode($row['info_json'],true);
|
||||
$data_row = $this->receiver_order_datas_model->get(['o_id'=>$id]);
|
||||
$jsondata = json_decode($data_row['jsondata'],true);
|
||||
if(!$data_row){
|
||||
@@ -154,6 +155,15 @@ class Cusorderdata extends Wxapp{
|
||||
];
|
||||
return $res_data;
|
||||
}
|
||||
//个人核对身份证
|
||||
if($userinfo['IdNum'] != $info_json['c_owner_cardid']){
|
||||
$res_data['code'] = API_CODE_ORC_FAIL;
|
||||
$res_data['data'] = [
|
||||
['caridA' => false,'errmsg'=>'身份证号码与客户不一致'],
|
||||
['caridB' => true,'errmsg'=>''],
|
||||
];
|
||||
return $res_data;
|
||||
}
|
||||
$update['cardida'] = $cardida;
|
||||
}elseif ($business_licence){
|
||||
$full_business_licence = build_qiniu_image_url($business_licence);
|
||||
|
||||
Reference in New Issue
Block a user