KICKOUT.zip
package com.fr.function;
import com.fr.script.AbstractFunction;
import com.fr.decision.webservice.utils.DecisionStatusService;
public class KICKOUT extends AbstractFunction {
public Object run(Object[] args) {
try {
DecisionStatusService.webSocketService().deleteAlias(args[0].toString());
DecisionStatusService.loginStatusService().deleteAlias(args[0].toString());
return "成功踢出!";
} catch (Exception e) {
return "错误:"+e.toString();
}
}
}
//单元格公式,即可踢出用户,解压后放到webapps\webroot\WEB-INF\classes\com\fr\function
//函数管理器配置一下自定义函数
=KICKOUT("用户名")