From 9bdfae4f8ac29d7f3309000df3fd323bbbdd3ed2 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Mon, 15 Jul 2024 13:39:45 +0800 Subject: [PATCH] 1 --- app/common/library/baidu/OcrLicense.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/library/baidu/OcrLicense.php b/app/common/library/baidu/OcrLicense.php index fd2b1311..f861628b 100644 --- a/app/common/library/baidu/OcrLicense.php +++ b/app/common/library/baidu/OcrLicense.php @@ -17,8 +17,8 @@ class OcrLicense public function __construct(string $clientId, string $clientSecret) { - $this->clientId = $clientId; - $this->clientSecret = $clientSecret; + $this->clientId = trim($clientId); + $this->clientSecret = trim($clientSecret); } public function check($img_url): array