mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-07-11 15:51:09 +08:00
Compare commits
No commits in common. "b14ce9c381ee6855bcd1e23e0690981733ffe92a" and "b799247cd27ce5a49b6f7ae22cfe10ab7768cb4e" have entirely different histories.
b14ce9c381
...
b799247cd2
2
We.php
2
We.php
@ -94,7 +94,7 @@ class We
|
||||
* 定义当前版本
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '1.2.52';
|
||||
const VERSION = '1.2.51';
|
||||
|
||||
/**
|
||||
* 静态配置
|
||||
|
||||
@ -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, false);
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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, false);
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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, false);
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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, false);
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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, false);
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -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, false);
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user