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