From e0c8a2a2335344e1003b11eb2727756a11f42ef0 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Mon, 15 Jul 2024 14:54:09 +0800 Subject: [PATCH] 1 --- app/common/library/baidu/OcrLicense.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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