修改部分接口TOKEN问题

This commit is contained in:
邹景立 2023-05-23 16:55:02 +08:00
parent 8f7758975c
commit 683eb10ebd
2 changed files with 9 additions and 9 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}