1
This commit is contained in:
@@ -26,6 +26,7 @@ class TranslatorService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log::info('fanyi',$vehicle);
|
||||||
return $vehicle;
|
return $vehicle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,6 @@ digest: %s", "ntrans.xfyun.cn", $date, $digestBase64);
|
|||||||
try {
|
try {
|
||||||
$res = $this->xfyun($text, $from, $to);
|
$res = $this->xfyun($text, $from, $to);
|
||||||
$data = json_decode($res["body"], true);
|
$data = json_decode($res["body"], true);
|
||||||
log::info('fanyi',$data);
|
|
||||||
if ($data["code"] === 0) {
|
if ($data["code"] === 0) {
|
||||||
return $data["data"]["result"];
|
return $data["data"]["result"];
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user