checkCard($img_url, $type); } /** * @notes:营业执照识别 * @param string $img_url * @return array * @throws BaseException * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException * @author: wanghousheng */ public static function checkLicense(string $img_url): array { // 当前用户ID UserService::getCurrentLoginUserId(); $config = Setting::getOcr(); $clientSecret = !empty($config['secret_key']) ? $config['secret_key'] : ''; $clientId = !empty($config['access_key']) ? $config['access_key'] : ''; $obj = new OcrLicense($clientId, $clientSecret); return $obj->check($img_url); } }