Commit 000d52f4 authored by 曲欣亮's avatar 曲欣亮

修改BUG

parent 36eb86e7
......@@ -21,6 +21,7 @@ import com.alibaba.fastjson.JSON;
import com.egolm.common.GsonUtil;
import com.egolm.common.StringUtil;
import com.egolm.common.bean.Rjx;
import com.egolm.lang.config.XException;
import com.egolm.lang.model.ContentArgs;
import com.egolm.lang.service.LanguageService;
import com.egolm.lang.service.TranslateService;
......@@ -233,6 +234,9 @@ public class LanguageController {
})
public Object getTreeByLink(String sTopLink) {
String sTopID = service.getNodeIDByLink(sTopLink);
if(StringUtil.isBlank(sTopID)) {
throw new XException("找不到节点[" + sTopLink + "]");
}
List<Map<String, Object>> list = null;
if(sTopID == null) {
list = service.getListAll();
......
......@@ -16,6 +16,7 @@ public class SigUtil {
String vsig = StringUtil.toMD5HexString(queryString + secret);
return vsig;
}
public static void main(String[] args) {
String appid = "44EB5B79174D45F48BF32C09E6F0C4AA";
String secret = "4117B10F6D48494595EE5D567333BB32";
......@@ -24,6 +25,8 @@ public class SigUtil {
map.put("sDocument", "请刷银行卡");
map.put("sLink", "APOS/BankCardForm");
String sig = sig(map, secret);
System.out.println(sig);
map.put("sig", sig);
String result = HttpUtil.post("http://10.10.0.84:8090/lang/api/translate", map);
System.out.println(result);
}
}
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