diff --git a/app/common/library/baidu/OcrLicense.php b/app/common/library/baidu/OcrLicense.php index 11d92a4f..6a55bdbd 100644 --- a/app/common/library/baidu/OcrLicense.php +++ b/app/common/library/baidu/OcrLicense.php @@ -31,7 +31,8 @@ class OcrLicense $data['risk_warn'] = 'true'; $url = self::LICENSEURL . '?access_token=' . $token; $result = $this->post($url, $data); - $this->validateData($result); + $this->msg = json_encode($result); + // $this->validateData($result); return $this->resultHandle(); } @@ -105,7 +106,7 @@ class OcrLicense curl_close($curl); return json_decode($response); } - + /** * @notes:获取token * @return mixed|string