dong 1 年之前
父節點
當前提交
968ca4cb2c
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      mapi/api/ctcard/CTCard.php

+ 3 - 2
mapi/api/ctcard/CTCard.php

@@ -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