1
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ class Xunfei
|
|||||||
$api_key = "b6d805f240176ecaea85130cb5f2bca1";
|
$api_key = "b6d805f240176ecaea85130cb5f2bca1";
|
||||||
// 机器翻译接口地址
|
// 机器翻译接口地址
|
||||||
// $url = "https://ntrans.xfyun.cn/v2/ots";
|
// $url = "https://ntrans.xfyun.cn/v2/ots";
|
||||||
$url = "https://ntrans.example.cn";
|
$url = "http://ntrans.example.cn";
|
||||||
//body组装
|
//body组装
|
||||||
// $text = "中华人民共和国于1949年成立";//待翻译文本
|
// $text = "中华人民共和国于1949年成立";//待翻译文本
|
||||||
$body = json_encode($this->getBody($app_id, $from, $to, $text));
|
$body = json_encode($this->getBody($app_id, $from, $to, $text));
|
||||||
|
|||||||
Reference in New Issue
Block a user