Commit fe9aa103 authored by 李德才's avatar 李德才

兼容多种中间件系统地址

parent cf531b2c
......@@ -11,6 +11,7 @@ import com.jfinal.aop.Before;
import com.jfinal.aop.Clear;
import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.kit.PropKit;
import com.jfinal.kit.Ret;
import com.jfinal.kit.StrKit;
import com.jfinal.plugin.activerecord.tx.Tx;
......@@ -159,6 +160,10 @@ public class SystemController extends Controller {
public void getSystemById() {
Integer id = this.getParaToInt("id");
System system = System.dao.findById(id);
if(PropKit.get("basic.url").contains("aserver")) {
system.setUrl(system.getUrl().replace("/" + system.getName(), ""));
system.setService(system.getService().replace("/" + system.getService(), ""));
}
this.renderJson(Ret.ok("system", system));
}
......
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