|
...
|
...
|
@@ -19,6 +19,13 @@ class Translate |
|
|
|
// public static $url = 'https://translate.hbb618.cn/translates';
|
|
|
|
public static $url = 'https://api.cmer.com/';
|
|
|
|
|
|
|
|
public static $header = array(
|
|
|
|
'accept: application/json',
|
|
|
|
'Content-Type: application/json',
|
|
|
|
'apikey: UkzZljFv83Z2qBi5YR1o3f2otAVWtug6',
|
|
|
|
'X-CmerApi-Host:ai_translate.p.cmer.com'
|
|
|
|
);
|
|
|
|
|
|
|
|
public static $tls_list = [
|
|
|
|
'en' => [
|
|
|
|
'text' => '英语',
|
|
...
|
...
|
@@ -734,7 +741,7 @@ class Translate |
|
|
|
'sl' => 'auto',
|
|
|
|
'tls' => $tls,
|
|
|
|
];
|
|
|
|
return Http::post(self::$url.$action, $data);
|
|
|
|
return http_post(self::$url.$action, json_encode($data),self::$header);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|