代理操控业务配置批量操作、定时任务相关修改提交.
This commit is contained in:
@@ -3246,5 +3246,37 @@ public abstract class BaseService {
|
||||
fileTemp.setOpTime(cfg.getAuditTime());
|
||||
return fileTemp;
|
||||
}
|
||||
|
||||
// Proxy Manipulate
|
||||
public static String setUserRegionOfMantipulateCfg(CfgIndexInfo cfg, String userRegion) {
|
||||
|
||||
ManipulatActionParam actionParam = new ManipulatActionParam();
|
||||
if(cfg.getUserRegion5().equals("48")) {
|
||||
actionParam.setMethod("redirect");
|
||||
actionParam.setCode(Integer.valueOf(cfg.getUserRegion1()));
|
||||
actionParam.setTo(cfg.getUserRegion2());
|
||||
}else if(cfg.getUserRegion5().equals("80")) {
|
||||
List<ReplaceCfg> ReplaceCfgList = new ArrayList();
|
||||
ReplaceCfg replaceCfg = new ReplaceCfg();
|
||||
replaceCfg.setSearch_in(cfg.getUserRegion1());
|
||||
replaceCfg.setFind(cfg.getUserRegion2());
|
||||
replaceCfg.setReplace_with(cfg.getUserRegion3());
|
||||
ReplaceCfgList.add(replaceCfg);
|
||||
actionParam.setMethod("replace");
|
||||
actionParam.setRules(ReplaceCfgList);
|
||||
}else if(cfg.getUserRegion5().equals("16")) {
|
||||
actionParam.setMethod("block");
|
||||
actionParam.setCode(Integer.valueOf(cfg.getUserRegion1()));
|
||||
actionParam.setMessage(cfg.getUserRegion2());
|
||||
actionParam.setHtml_profile(Integer.valueOf(cfg.getUserRegion4()));
|
||||
}else if(cfg.getUserRegion5().equals("85")) {
|
||||
actionParam.setMethod("hijack");
|
||||
actionParam.setHijack_profile(Integer.valueOf(cfg.getUserRegion4()));
|
||||
}else if(cfg.getUserRegion5().equals("90")) {
|
||||
actionParam.setMethod("insert");
|
||||
actionParam.setInsert_profile(Integer.valueOf(cfg.getUserRegion4()));
|
||||
}
|
||||
return gsonToJson(actionParam);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user