Compare commits

..

2 Commits

Author SHA1 Message Date
邹景立
b14ce9c381 修改版本号 2023-12-28 21:45:38 +08:00
邹景立
4aa98a58a6 修正ORC识别调用 2023-12-28 21:40:51 +08:00
2 changed files with 7 additions and 7 deletions

2
We.php
View File

@ -94,7 +94,7 @@ class We
* 定义当前版本
* @var string
*/
const VERSION = '1.2.51';
const VERSION = '1.2.52';
/**
* 静态配置

View File

@ -35,7 +35,7 @@ class Ocr extends BasicWeChat
public function bankcard($data)
{
$url = 'https://api.weixin.qq.com/cv/ocr/bankcard?access_token=ACCESS_TOKEN';
return $this->callPostApi($url, $data, true);
return $this->callPostApi($url, $data, false);
}
/**
@ -48,7 +48,7 @@ class Ocr extends BasicWeChat
public function businessLicense($data)
{
$url = 'https://api.weixin.qq.com/cv/ocr/bizlicense?access_token=ACCESS_TOKEN';
return $this->callPostApi($url, $data, true);
return $this->callPostApi($url, $data, false);
}
/**
@ -61,7 +61,7 @@ class Ocr extends BasicWeChat
public function driverLicense($data)
{
$url = 'https://api.weixin.qq.com/cv/ocr/drivinglicense?access_token=ACCESS_TOKEN';
return $this->callPostApi($url, $data, true);
return $this->callPostApi($url, $data, false);
}
/**
@ -74,7 +74,7 @@ class Ocr extends BasicWeChat
public function idcard($data)
{
$url = 'https://api.weixin.qq.com/cv/ocr/idcard?access_token=ACCESS_TOKEN';
return $this->callPostApi($url, $data, true);
return $this->callPostApi($url, $data, false);
}
/**
@ -87,7 +87,7 @@ class Ocr extends BasicWeChat
public function printedText($data)
{
$url = 'https://api.weixin.qq.com/cv/ocr/comm?access_token=ACCESS_TOKEN';
return $this->callPostApi($url, $data, true);
return $this->callPostApi($url, $data, false);
}
/**
@ -100,6 +100,6 @@ class Ocr extends BasicWeChat
public function vehicleLicense($data)
{
$url = 'https://api.weixin.qq.com/cv/ocr/driving?access_token=ACCESS_TOKEN';
return $this->callPostApi($url, $data, true);
return $this->callPostApi($url, $data, false);
}
}