All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fastchar.extjs.systemtool.action.FastSystemToolAction Maven / Gradle / Ivy

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