|
@@ -63,8 +63,9 @@ class CTCard implements IOpenCard
|
|
|
|
|
|
$params['head'] = $this->head("fraudCheck");
|
|
|
$params['biz'] = $biz;
|
|
|
- $requestParameters = json_encode($params, JSON_UNESCAPED_UNICODE);
|
|
|
+ $requestParameters = json_encode($params,JSON_UNESCAPED_UNICODE);
|
|
|
$resp = http_post_data(config::production_env['DcoosExternalNetwork'], $requestParameters , config::HeaderProduction, $net_errno);
|
|
|
+
|
|
|
if (empty($resp)) {
|
|
|
return [false, '网络错误'];
|
|
|
}
|
|
@@ -85,7 +86,7 @@ class CTCard implements IOpenCard
|
|
|
$params['biz'] = $biz;
|
|
|
$requestParameters = json_encode($params, JSON_UNESCAPED_UNICODE);
|
|
|
$resp = http_post_data(config::production_env['DcoosExternalNetwork'], $requestParameters , config::HeaderProduction, $net_errno);
|
|
|
- return [];
|
|
|
+ return $resp;
|
|
|
}
|
|
|
|
|
|
public function address_delivery($biz, &$net_errno = 0) : array
|