generated from root/miduo_server
功能 礼包封禁
parent
4326372d8e
commit
d14ea2b5f6
|
|
@ -252,10 +252,10 @@ public class GmController {
|
|||
// out.close();
|
||||
// }
|
||||
@RequestMapping(value = "/banFunction", method = {RequestMethod.POST, RequestMethod.GET})
|
||||
public @ResponseBody int banFunction(HttpServletRequest request) throws Exception{
|
||||
String function = request.getParameter("function");// protocal/good
|
||||
String action = request.getParameter("action");// ban/opend
|
||||
String id = request.getParameter("id");// id
|
||||
public @ResponseBody String banFunction(HttpServletRequest request) throws Exception{
|
||||
String function = request.getParameter("type");// protocal/good
|
||||
String action = request.getParameter("operate");// ban/opend
|
||||
String id = request.getParameter("Id");// id
|
||||
|
||||
|
||||
ServerBanPro banDao = banFuctionDao.findUserInfo();
|
||||
|
|
@ -297,7 +297,7 @@ public @ResponseBody int banFunction(HttpServletRequest request) throws Exceptio
|
|||
}
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
return "succeful";
|
||||
}
|
||||
public void recharge() throws IOException {
|
||||
String osName = System.getProperty("os.name");
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ public class BanFunctionImpl implements BanFuctionDao {
|
|||
Query query = new Query();
|
||||
Update update = new Update();
|
||||
update.set("banProtoId",serverBanPro.getBanProtoId());
|
||||
update.set("banGoodList",serverBanPro.getBanGoodList());
|
||||
mongoTemplate.updateFirst(query,update,ServerBanPro.class);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,8 +93,9 @@ public enum PowersEnum {
|
|||
SUPPORT_PLAN_SELECT(1104,"扶持进度查看",1100,1,"supportPlanList"),
|
||||
PASS_SUPPORT_PERMISSIONS(1105,"权限: 通过扶持权限",1100,0,""),
|
||||
DELETE_SUPPORT_ACCOUNT_PERMISSIONS(1106,"权限: 删除扶持账号",1100,0,""),
|
||||
|
||||
|
||||
//功能封禁
|
||||
BAN_FUNCTION(1201,"功能封禁",1201,1,""),
|
||||
BAN_FUNCTION_ACTION(1202,"功能封禁操作",1201,1,"/html/banFunction.html"),
|
||||
;
|
||||
|
||||
private int id;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,93 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="renderer" content="webkit|ie-comp|ie-stand">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
||||
<!--[if lt IE 9]>
|
||||
<script type="text/javascript" src="../static/lib/html5shiv.js"></script>
|
||||
<script type="text/javascript" src="../static/lib/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
<link rel="stylesheet" type="text/css" href="../static/h-ui/css/H-ui.min.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/H-ui.admin.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../static/lib/Hui-iconfont/1.0.8/iconfont.css" />
|
||||
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
|
||||
<link rel="stylesheet" type="text/css" href="../static/h-ui.admin/css/style.css" />
|
||||
<!--[if IE 6]>
|
||||
<script type="text/javascript" src="../static/lib/DD_belatedPNG_0.0.8a-min.js"></script>
|
||||
<script>DD_belatedPNG.fix('*');</script>
|
||||
<![endif]-->
|
||||
<title>個人信息查询</title>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页 <span class="c-gray en">></span> 功能封禁 <span class="c-gray en">></span> 功能封禁操作 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a></nav>
|
||||
<div class="page-container" style="text-align: center">
|
||||
<h1><span style="color: red">封禁功能</span></h1>
|
||||
<form class="form form-horizontal" id="form-article-add" action="/banFunction" method="post" onsubmit="return getUserInfo()">
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-2">
|
||||
<span class="c-red">*</span>类型:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="hidden" id="status"/>
|
||||
<select name="type" class="input-text" id="stype"><!--下拉列表-->
|
||||
<option value="protocal">功能协议</option>
|
||||
<option value="good">礼包</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-2">
|
||||
<span class="c-red">*</span>操作:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="hidden" id="status1"/>
|
||||
<select name="operate" class="input-text" id="operate"><!--下拉列表-->
|
||||
<option value="ban">封禁</option>
|
||||
<option value="open">打开</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row cl">
|
||||
<label class="form-label col-xs-4 col-sm-2">
|
||||
<span class="c-red">*</span>
|
||||
ID:</label>
|
||||
<div class="formControls col-xs-8 col-sm-9">
|
||||
<input type="text" name="Id" placeholder="" value="" class="input-text"/>
|
||||
<span class="Id"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row cl" style="text-align: center" >
|
||||
<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
|
||||
<button class="btn btn-primary radius" type="submit" style="font-size: 15px"><i class="Hui-iconfont"></i> 确定</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script type="text/javascript" src="../static/lib/jquery/1.9.1/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../static/lib/layer/2.4/layer.js"></script>
|
||||
<script type="text/javascript" src="../static/h-ui/js/H-ui.min.js"></script>
|
||||
<script type="text/javascript" src="../static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去-->
|
||||
|
||||
<script type="text/javascript" src="../static/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
function getUserInfo() {
|
||||
var serverId = $("#serverId").val();
|
||||
var Id = $("input[name='Id']").val();
|
||||
var erroCode = $('.SERVERID');
|
||||
if (Id === '' || Id == null) {
|
||||
erroCode = $('.Id');
|
||||
erroCode.html('<span style="color: red; ">角色id不能为空!</span>');
|
||||
return false;
|
||||
}else {
|
||||
erroCode = $('.Id');
|
||||
erroCode.html('<span style="color: red; "></span>');
|
||||
}
|
||||
return true
|
||||
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue