This commit is contained in:
2025-06-25 09:58:38 +08:00
parent 4430a846e8
commit f223fa3733
+1
View File
@@ -115,6 +115,7 @@ digest: %s", "ntrans.xfyun.cn", $date, $digestBase64);
{
try {
$res = $this->xfyun($text, $from, $to);
log::error('fanyi_res',[$res]);
$data = json_decode($res["body"], true);
if ($data["code"] === 0) {
return $data["data"]["result"];