add iflyket

This commit is contained in:
taofajun 2020-06-29 18:28:45 +08:00
parent 8752b16a1a
commit 45128a8f87
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class Iflytek implements AudioSynthesisStrategy
// 不成功会返回错误 code为0是成功
if ($response['code']) {
return ['code' => 0, 'msg' => $response, 'data'=>['audio_name'=>'']];
return ['code' => 0, 'msg' => $response['code'].'_'.$response['message'], 'data'=>['audio_name'=>'']];
}
//返回的音频需要进行base64解码
$audio = base64_decode($response['data']['audio']);