Compare commits

..

No commits in common. "b14ce9c381ee6855bcd1e23e0690981733ffe92a" and "b799247cd27ce5a49b6f7ae22cfe10ab7768cb4e" have entirely different histories.

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.52';
const VERSION = '1.2.51';
/**
* 静态配置

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