com.fastchar.extjs.systemtool.action.FastSystemToolAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-extjs-systemtool Show documentation
Show all versions of fastchar-extjs-systemtool Show documentation
FastChar-ExtJs-SystemTool is a FastChar-ExtJs plugin.
The newest version!
package com.fastchar.extjs.systemtool.action;
import com.fastchar.core.FastAction;
import com.fastchar.extjs.systemtool.entity.FinalLogExceptionEntity;
import com.fastchar.extjs.systemtool.entity.FinalLogThreadEntity;
public class FastSystemToolAction extends FastAction {
@Override
protected String getRoute() {
return "/base/system/tool";
}
/**
* 上报js异常
*/
public void jsException() {
String content = getParam("jsException");
FinalLogExceptionEntity logExceptionEntity = FinalLogExceptionEntity.newInstance();
logExceptionEntity.set("exception", "【FromExtJs】" + content);
logExceptionEntity.save();
responseJson(0, "上报成功!");
}
/**
* 刷新线程数据
*/
public void refreshThreadData() {
FinalLogThreadEntity.dao().refreshData();
responseJson(0, "刷新成功!");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy