This commit is contained in:
2025-06-25 11:17:57 +08:00
parent ce55353d30
commit 7b517cdc48
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ class Xunfei
//在控制台-我的应用-机器翻译获取
$api_key = "b6d805f240176ecaea85130cb5f2bca1";
// 机器翻译接口地址
// $url = "https://ntrans.xfyun.cn/v2/ots";
$url = "http://ntrans.example.cn";
$url = "https://ntrans.xfyun.cn/v2/ots";
// $url = "http://ntrans.example.cn";
//body组装
// $text = "中华人民共和国于1949年成立";//待翻译文本
$body = json_encode($this->getBody($app_id, $from, $to, $text));