diff --git a/app/api/controller/XunFeiController.php b/app/api/controller/XunFeiController.php index 01d0a19bf..aaeafe4d9 100644 --- a/app/api/controller/XunFeiController.php +++ b/app/api/controller/XunFeiController.php @@ -392,8 +392,8 @@ class XunFeiController extends BaseApiController if ($filesize > 4 * 1024 * 1024) { return $this->fail('图片文件不能超过4M'); } - $ext = pathinfo($file, PATHINFO_EXTENSION); */ + $ext = pathinfo($file, PATHINFO_EXTENSION); $base64_image = base64_encode(file_get_contents($file)); $ocr = new OcrClient($this->app_id, $this->api_key, $this->api_secret); $ocrHostUrl = $ocr->assembleAuthUrl($ocrHostUrl);