更新
This commit is contained in:
parent
9c636041f2
commit
af1b902a25
@ -74,7 +74,15 @@ class Pusher
|
|||||||
if ($tts_type == 1) {
|
if ($tts_type == 1) {
|
||||||
if (count($arr) == 2) {
|
if (count($arr) == 2) {
|
||||||
$resp['payload']['choices']['tts_text'] = $text.$arr[0];
|
$resp['payload']['choices']['tts_text'] = $text.$arr[0];
|
||||||
$text =$arr[1]??'';
|
unset($arr[0]);
|
||||||
|
if(count($arr)>0){
|
||||||
|
foreach ($arr as $k => $v) {
|
||||||
|
$text .=$v;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$text ='';
|
||||||
|
}
|
||||||
|
|
||||||
$response = json_encode($resp, true);
|
$response = json_encode($resp, true);
|
||||||
} else {
|
} else {
|
||||||
$resp['payload']['choices']['tts_text'] = '';
|
$resp['payload']['choices']['tts_text'] = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user