From e09a9bcbf5f51bb801953ce9c4bc187731672565 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Mon, 15 Jul 2024 13:40:49 +0800 Subject: [PATCH] 1 --- app/common/library/baidu/OcrLicense.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/common/library/baidu/OcrLicense.php b/app/common/library/baidu/OcrLicense.php index f861628b..a5dfaa17 100644 --- a/app/common/library/baidu/OcrLicense.php +++ b/app/common/library/baidu/OcrLicense.php @@ -118,11 +118,10 @@ class OcrLicense $data['client_id'] = $this->clientId; $data['client_secret'] = $this->clientSecret; $result = $this->post(self::TOKENURL, $data); - if (!empty($result->access_token)) { $token = $result->access_token; } else { - $this->msg = '获取token失败' . json_encode($result); + $this->msg = '获取token失败' . json_encode($result) . 'client_id:' . $this->clientId . ' client_secret:' . $this->clientSecret; } return $token; }