pull/5/head
wanghousheng 4 months ago
parent 9bdfae4f8a
commit e09a9bcbf5
  1. 3
      app/common/library/baidu/OcrLicense.php

@ -118,11 +118,10 @@ class OcrLicense
$data['client_id'] = $this->clientId;
$data['client_secret'] = $this->clientSecret;
$result = $this->post(self::TOKENURL, $data);
if (!empty($result->access_token)) {
$token = $result->access_token;
} else {
$this->msg = '获取token失败' . json_encode($result);
$this->msg = '获取token失败' . json_encode($result) . 'client_id:' . $this->clientId . ' client_secret:' . $this->clientSecret;
}
return $token;
}

Loading…
Cancel
Save