翻译域名代理

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