mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-05 19:41:44 +08:00
修改部分接口TOKEN问题
This commit is contained in:
parent
8f7758975c
commit
683eb10ebd
@ -36,7 +36,7 @@ class Image extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function aiCrop($img_url, $img)
|
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);
|
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)
|
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);
|
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)
|
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);
|
return $this->callPostApi($url, ['img_url' => $img_url, 'img' => $img], true);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -34,7 +34,7 @@ class Ocr extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function bankcard($data)
|
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);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ class Ocr extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function businessLicense($data)
|
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);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ class Ocr extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function driverLicense($data)
|
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);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ class Ocr extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function idcard($data)
|
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);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,7 +86,7 @@ class Ocr extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function printedText($data)
|
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);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ class Ocr extends BasicWeChat
|
|||||||
*/
|
*/
|
||||||
public function vehicleLicense($data)
|
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);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user