开启验证
This commit is contained in:
@@ -147,15 +147,20 @@ class PatientFamilyService extends BaseService
|
||||
}
|
||||
|
||||
// 实人认证-生产环境开启
|
||||
// $IdCard = new IdCard();
|
||||
//
|
||||
// $params =array();
|
||||
// $params['name'] = $request_params['card_name'];
|
||||
// $params['cardNo'] = $request_params['id_number'];
|
||||
// $res = $IdCard->checkIdCard($params);
|
||||
// if (!empty($res)){
|
||||
// return fail(HttpEnumCode::HTTP_ERROR,$res);
|
||||
// }
|
||||
|
||||
|
||||
$app_env = config('app_env','dev');
|
||||
if ($app_env != "dev"){
|
||||
$IdCard = new IdCard();
|
||||
|
||||
$params =array();
|
||||
$params['name'] = $request_params['card_name'];
|
||||
$params['cardNo'] = $request_params['id_number'];
|
||||
$res = $IdCard->checkIdCard($params);
|
||||
if (!empty($res)){
|
||||
return fail(HttpEnumCode::HTTP_ERROR,$res);
|
||||
}
|
||||
}
|
||||
|
||||
Db::beginTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user