This commit is contained in:
2025-05-28 16:53:26 +08:00
parent c8ed661116
commit 944803b09c
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -114,6 +114,7 @@ digest: %s", "ntrans.xfyun.cn", $date, $digestBase64);
{
try {
$res = $this->xfyun($text, $from, $to);
log::info('fanyi',[$res]);
$data = json_decode($res["body"], true);
if ($data["code"] === 0) {
return $data["data"]["result"];