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