|
|
@ -31,7 +31,8 @@ class OcrLicense |
|
|
|
$data['risk_warn'] = 'true'; |
|
|
|
$data['risk_warn'] = 'true'; |
|
|
|
$url = self::LICENSEURL . '?access_token=' . $token; |
|
|
|
$url = self::LICENSEURL . '?access_token=' . $token; |
|
|
|
$result = $this->post($url, $data); |
|
|
|
$result = $this->post($url, $data); |
|
|
|
$this->validateData($result); |
|
|
|
$this->msg = json_encode($result); |
|
|
|
|
|
|
|
// $this->validateData($result); |
|
|
|
return $this->resultHandle(); |
|
|
|
return $this->resultHandle(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -105,7 +106,7 @@ class OcrLicense |
|
|
|
curl_close($curl); |
|
|
|
curl_close($curl); |
|
|
|
return json_decode($response); |
|
|
|
return json_decode($response); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @notes:获取token |
|
|
|
* @notes:获取token |
|
|
|
* @return mixed|string |
|
|
|
* @return mixed|string |
|
|
|