From 683eb10ebdfc80070e2b5e825af9307090ee714a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 23 May 2023 16:55:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3TOKEN=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WeMini/Image.php | 6 +++--- WeMini/Ocr.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/WeMini/Image.php b/WeMini/Image.php index 8a0cb5c..487c9af 100644 --- a/WeMini/Image.php +++ b/WeMini/Image.php @@ -36,7 +36,7 @@ class Image extends BasicWeChat */ public function aiCrop($img_url, $img) { - $url = "https://api.weixin.qq.com/cv/img/aicrop?access_token=ACCESS_TOCKEN"; + $url = "https://api.weixin.qq.com/cv/img/aicrop?access_token=ACCESS_TOKEN"; return $this->callPostApi($url, ['img_url' => $img_url, 'img' => $img], true); } @@ -50,7 +50,7 @@ class Image extends BasicWeChat */ public function scanQRCode($img_url, $img) { - $url = "https://api.weixin.qq.com/cv/img/qrcode?img_url=ENCODE_URL&access_token=ACCESS_TOCKEN"; + $url = "https://api.weixin.qq.com/cv/img/qrcode?img_url=ENCODE_URL&access_token=ACCESS_TOKEN"; return $this->callPostApi($url, ['img_url' => $img_url, 'img' => $img], true); } @@ -64,7 +64,7 @@ class Image extends BasicWeChat */ public function superresolution($img_url, $img) { - $url = "https://api.weixin.qq.com/cv/img/qrcode?img_url=ENCODE_URL&access_token=ACCESS_TOCKEN"; + $url = "https://api.weixin.qq.com/cv/img/qrcode?img_url=ENCODE_URL&access_token=ACCESS_TOKEN"; return $this->callPostApi($url, ['img_url' => $img_url, 'img' => $img], true); } } \ No newline at end of file diff --git a/WeMini/Ocr.php b/WeMini/Ocr.php index 465a7d1..83c6fcb 100644 --- a/WeMini/Ocr.php +++ b/WeMini/Ocr.php @@ -34,7 +34,7 @@ class Ocr extends BasicWeChat */ public function bankcard($data) { - $url = 'https://api.weixin.qq.com/cv/ocr/bankcard?access_token=ACCESS_TOCKEN'; + $url = 'https://api.weixin.qq.com/cv/ocr/bankcard?access_token=ACCESS_TOKEN'; return $this->callPostApi($url, $data, true); } @@ -47,7 +47,7 @@ class Ocr extends BasicWeChat */ public function businessLicense($data) { - $url = 'https://api.weixin.qq.com/cv/ocr/bizlicense?access_token=ACCESS_TOCKEN'; + $url = 'https://api.weixin.qq.com/cv/ocr/bizlicense?access_token=ACCESS_TOKEN'; return $this->callPostApi($url, $data, true); } @@ -60,7 +60,7 @@ class Ocr extends BasicWeChat */ public function driverLicense($data) { - $url = 'https://api.weixin.qq.com/cv/ocr/drivinglicense?access_token=ACCESS_TOCKEN'; + $url = 'https://api.weixin.qq.com/cv/ocr/drivinglicense?access_token=ACCESS_TOKEN'; return $this->callPostApi($url, $data, true); } @@ -73,7 +73,7 @@ class Ocr extends BasicWeChat */ public function idcard($data) { - $url = 'https://api.weixin.qq.com/cv/ocr/idcard?access_token=ACCESS_TOCKEN'; + $url = 'https://api.weixin.qq.com/cv/ocr/idcard?access_token=ACCESS_TOKEN'; return $this->callPostApi($url, $data, true); } @@ -86,7 +86,7 @@ class Ocr extends BasicWeChat */ public function printedText($data) { - $url = 'https://api.weixin.qq.com/cv/ocr/comm?access_token=ACCESS_TOCKEN'; + $url = 'https://api.weixin.qq.com/cv/ocr/comm?access_token=ACCESS_TOKEN'; return $this->callPostApi($url, $data, true); } @@ -99,7 +99,7 @@ class Ocr extends BasicWeChat */ public function vehicleLicense($data) { - $url = 'https://api.weixin.qq.com/cv/ocr/driving?access_token=ACCESS_TOCKEN'; + $url = 'https://api.weixin.qq.com/cv/ocr/driving?access_token=ACCESS_TOKEN'; return $this->callPostApi($url, $data, true); } } \ No newline at end of file