Commit 3e1bfe4f authored by 曲欣亮's avatar 曲欣亮

修改翻译API

parent 5756708c
......@@ -348,7 +348,7 @@ public class LanguageController {
@ApiImplicitParam(paramType = "query", name = "sDocument", dataType = "string", required = false, value = "sDocument")
})
public Object translate(String sLink, String sDocument) {
T_lang_tree node = service.getNodeByLink(sLink);
T_lang_tree node = service.getNodeByLink(sLink, true);
Map<String, Object> textMap = GsonUtil.toMap(node.getsContentText());
String sCaption = (String)textMap.get("sCaption");
List<?> objList = (List<?>)textMap.get("sDocuments");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment