private static string GetRequestUrl(string queryText) { queryText = WebRequestTransformHelper.SetSpecialCharToUnicode(queryText); var requestUrl = "http://fy.iciba.com/ajax.php?a=fy" + $"&f=auto&t=auto&w={queryText}"; return(requestUrl); }
private static string GetRequestUrl(string queryText) { queryText = WebRequestTransformHelper.SetSpecialCharToUnicode(queryText); //原有的有道非官方翻译接口,已被禁用。非官方接口不存在http://fanyi.youdao.com/translate?doctype=json&jsonversion=&type=&keyfrom=&model=&mid=&imei=&vendor=&screen=&ssid=&network=&abtest= //转至官方翻译接口 var requestUrl = "http://fanyi.youdao.com/translate?doctype=json" + $"&q={queryText}&network=5g"; return(requestUrl); }