diff --git a/src/main/java/github/acodervic/mod/shell/SystemUtil.java b/src/main/java/github/acodervic/mod/shell/SystemUtil.java index dc5ce86..69f4ceb 100644 --- a/src/main/java/github/acodervic/mod/shell/SystemUtil.java +++ b/src/main/java/github/acodervic/mod/shell/SystemUtil.java @@ -366,30 +366,7 @@ public static str youdaoTran(String str_opt) { return chinses; } - static TransApi baiduTran = new TransApi("20200610000491698", "qJw_J81bkOPrenmzMKBN"); - - /** - * 百度翻译 - * - * @param data - * @param hClient_opt - * @return - */ - public static str baiduAPITran(String data, HttpClient hClient_opt) { - if (data == null) { - return new str(""); - } - // 已经翻译过 - if (translatedMap.containsKey(data)) { - return new str(translatedMap.get(data)); - } - String transResult = baiduTran.getTransResult(data); - if (transResult != null && transResult.length() > 0) { - translatedMap.put(data, transResult); - return new str(transResult); - } - return new str(data); - } + /** * 词霸翻译,翻译失败则返回null * @param data