protected void onModify(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamFishBossControl param = new ParamFishBossControl(); param.m_op = ParamFishBossControl.MODIFY_ROOM_BOSS; param.m_roomList = m_roomList; bool valid = true; if (!int.TryParse(m_maxCount.Text, out param.m_maxBossCount)) { valid = false; } if (!int.TryParse(m_rand.Text, out param.m_createBossRand)) { valid = false; } OpRes res = OpRes.op_res_failed; if (valid) { res = user.doDyop(param, DyOpType.opTypeFishBoss); } else { res = OpRes.op_res_reward_beyond_limit; } m_res.InnerText = OpResMgr.getInstance().getResultString(res); genTable(m_room, user); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck("", context.Session, context.Response); GMUser user = (GMUser)context.Session["user"]; ParamCreateGmAccount param = new ParamCreateGmAccount(); param.m_accType = AccType.ACC_SUPER_ADMIN_SUB; param.m_pwd1 = context.Request.Form["pwd"]; param.m_pwd2 = param.m_pwd1; param.m_aliasName = context.Request.Form["name"]; OpRes res = user.doDyop(param, DyOpType.opTypeDyOpCreateGmAccount); string ret = ""; if (res == OpRes.opres_success) { ret = OpResMgr.getInstance().getResultString(OpRes.op_res_account_info, param.m_resultAcc, param.m_validatedCode); } else { ret = OpResMgr.getInstance().getResultString(res); } context.Response.ContentType = "text/plain"; context.Response.Write(ret); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck(RightDef.OP_WEEK_CHAMPION_SETTING, context.Session, context.Response); GMUser user = (GMUser)context.Session["user"]; ParamGrandPrixWeekChampion p = new ParamGrandPrixWeekChampion(); p.m_op = Convert.ToInt32(context.Request.Form["op"]); p.m_param = Convert.ToString(context.Request.Form["param"]); p.m_score = Convert.ToString(context.Request.Form["score"]); OpRes res = user.doDyop(p, DyOpType.opTypeWeekChampionControl); string str = OpResMgr.getInstance().getResultString(res); Dictionary <string, object> retVal = new Dictionary <string, object>(); retVal.Add("op", p.m_op); retVal.Add("param", p.m_param); retVal.Add("score", p.m_score); retVal.Add("resultStr", str); retVal.Add("result", (int)res); if (!string.IsNullOrEmpty(p.m_retNickName)) { retVal.Add("nickName", p.m_retNickName); } context.Response.ContentType = "text/plain"; context.Response.Write(ItemHelp.genJsonStr(retVal)); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck(RightDef.OP_PLAYER_OP, context.Session, context.Response); ParamPlayerOp param = new ParamPlayerOp(); param.m_op = context.Request.Form["op"]; param.m_acc = context.Request.Form["playerId"]; param.m_prop = context.Request.Form["prop"]; param.m_value = context.Request.Form["value"]; GMUser user = (GMUser)context.Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeKickPlayer); string str = ""; if (param.m_op == "getLogFishList" || param.m_op == "getLimitDbSendPlayer") { DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); List <int> dyres = (List <int>)mgr.getResult(DyOpType.opTypeKickPlayer); str = string.Join(",", dyres); } else { str = OpResMgr.getInstance().getResultString(res); } context.Response.ContentType = "text/plain"; context.Response.Write(str); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck(RightDef.GM_TYPE_EDIT, context.Session, context.Response); ParamGmTypeEdit param = new ParamGmTypeEdit(); param.m_op = Convert.ToInt32(context.Request.Form["op"]); param.m_param = context.Request.Form["param"]; param.m_newValue = context.Request.Form["newValue"]; GMUser user = (GMUser)context.Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeGmTypeEdit); string str = ""; switch (param.m_op) { case DefCC.OP_ADD: { Dictionary <string, object> retData = new Dictionary <string, object>(); retData.Add("result", (int)res); retData.Add("acc", param.m_param); retData.Add("id", param.m_newValue); str = ItemHelp.genJsonStr(retData); } break; case DefCC.OP_MODIFY: { Dictionary <string, object> retData = new Dictionary <string, object>(); retData.Add("result", (int)res); retData.Add("id", param.m_param); retData.Add("newValue", param.m_newValue); str = ItemHelp.genJsonStr(retData); } break; case DefCC.OP_REMOVE: { Dictionary <string, object> retData = new Dictionary <string, object>(); retData.Add("result", (int)res); retData.Add("id", param.m_param); str = ItemHelp.genJsonStr(retData); } break; case DefCC.OP_VIEW: { List <Dictionary <string, object> > gmList = (List <Dictionary <string, object> >)user.getDyopResult(DyOpType.opTypeGmTypeEdit); Dictionary <string, object> retData = new Dictionary <string, object>(); retData.Add("gmList", gmList); str = ItemHelp.genJsonStr(retData); } break; } context.Response.ContentType = "text/plain"; context.Response.Write(str); }
// 清理登录失败次数 public OpRes clearPlayerFailCount(string acc, GMUser user) { ParamPlayerOp param = new ParamPlayerOp(); param.m_acc = acc; OpRes res = user.doDyop(param, DyOpType.opTypeClearLoginFailed); return(res); }
// 解锁玩家 public OpRes unlockPlayer(string acc, GMUser user) { ParamPlayerOp param = new ParamPlayerOp(); param.m_acc = acc; OpRes res = user.doDyop(param, DyOpType.opTypeUnlockPlayer); return(res); }
// 设置是否影响盈利率 public OpRes playerAffectEarnRate(string acc, bool isAffect, GMUser user) { ParamPlayerSpecialFlag param = new ParamPlayerSpecialFlag(); param.m_acc = acc; param.m_isAffectEarning = isAffect; OpRes res = user.doDyop(param, DyOpType.opTypeSetPlayerSpecialFlag); return(res); }
// 停封/解封玩家账号 public OpRes blockPlayerAcc(string acc, bool block, GMUser user) { ParamBlock param = new ParamBlock(); param.m_param = acc; param.m_isBlock = block; OpRes res = user.doDyop(param, DyOpType.opTypeBlockAcc); return(res); }
OpRes modifyAccState(ParamModifyGmProperty p, GMUser user) { ParamStartStopGmAcc param = new ParamStartStopGmAcc(); param.m_acc = p.m_acc; param.m_opType = Convert.ToInt32(p.m_param); OpRes res = user.doDyop(param, DyOpType.opTypeDyOpStartStopGmAcc); return(res); }
protected void onKickPlayer(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamPlayerOp param = new ParamPlayerOp(); param.m_acc = m_playerId.Text; OpRes res = user.doDyop(param, DyOpType.opTypeKickPlayer); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck("", context.Session, context.Response); GMUser user = (GMUser)context.Session["user"]; string gList = context.Request.Form["gameList"]; OpRes res = user.doDyop(gList, DyOpType.opTypeOpenGame); string ret = OpResMgr.getInstance().getResultString(res); context.Response.ContentType = "text/plain"; context.Response.Write(ret); }
// 重置玩家登录密码 public OpRes resetPlayerPwd(string acc, string newPwd, GMUser user) { ParamModifyPwd p = new ParamModifyPwd(); p.m_account = acc; p.m_newPwd = newPwd; p.m_pwdType = 0; OpRes res = user.doDyop(p, DyOpType.opTypeModifyPwd); return(res); }
protected void onUnBlockAcc(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamBlock param = new ParamBlock(); param.m_param = m_acc.Text; param.m_isBlock = false; OpRes res = user.doDyop(param, DyOpType.opTypeBlockAcc); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onQuery() { GMUser user = (GMUser)Session["user"]; ParamGrandPrixWeekChampion param = new ParamGrandPrixWeekChampion(); param.m_op = ParamGrandPrixWeekChampion.CUR_SAFE_ACCOUNT; user.doDyop(param, DyOpType.opTypeWeekChampionControl); DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); DyOpWeekChampionControl dy = (DyOpWeekChampionControl)mgr.getDyOp(DyOpType.opTypeWeekChampionControl); genTable(m_result, OpRes.opres_success, dy); }
protected void onModifyRight(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamModifyGmProperty param = new ParamModifyGmProperty(); param.m_whichProperty = ParamModifyGmProperty.MODIFY_ALIASNAME; param.m_acc = m_acc.Text; param.m_param = m_aliasName.Text; OpRes res = user.doDyop(param, DyOpType.opTypeDyOpModifyGmProperty); m_res.InnerText = OpResMgr.getInstance().getResultString(res); }
protected void onResetPlayerPwd(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamModifyPwd p = new ParamModifyPwd(); p.m_account = m_acc1.Text; p.m_newPwd = m_pwd1.Text; p.m_pwdType = 0; // 更改登录密码 OpRes res = user.doDyop(p, DyOpType.opTypeModifyPwd); m_res1.InnerHtml = OpResMgr.getInstance().getResultString(res); }
public OpRes onReset(GMUser user, string roomList, DyOpType dyType) { ParamFishlordParamAdjust p = new ParamFishlordParamAdjust(); p.m_isReset = true; p.m_roomList = roomList; OpRes res = user.doDyop(p, dyType /*DyOpType.opTypeFishlordParamAdjust*/); // genExpRateTable(m_expRateTable, user); return(res); }
protected void onModify(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamModifyLoginPwd param = new ParamModifyLoginPwd(); param.m_oriPwd = m_oriPwd.Text; param.m_newPwd1 = m_pwd1.Text; param.m_newPwd2 = m_pwd2.Text; OpRes res = user.doDyop(param, DyOpType.opTypeModifyGmLoginPwd); m_res.InnerText = OpResMgr.getInstance().getResultString(res); }
void scoreToPlayer(int op) { ParamScore param = new ParamScore(); param.m_op = op; param.m_toAcc = m_acc.Text; param.m_score = m_score.Text; param.scoreToPlayer(); GMUser user = (GMUser)Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeDyOpScore); m_scoreRes.InnerText = OpResMgr.getInstance().getResultString(res); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck(RIGHT.SCORE, context.Session, context.Response); GMUser user = (GMUser)context.Session["user"]; ParamScore param = new ParamScore(); param.m_op = Convert.ToInt32(context.Request.Form["op"]); param.m_toAcc = context.Request.Form["acc"]; param.m_score = context.Request.Form["param"]; int targetType = Convert.ToInt32(context.Request.Form["targetType"]); if (targetType == AccType.ACC_PLAYER) { param.scoreToPlayer(); } else { param.scoreToMgr(); } OpRes res = user.doDyop(param, DyOpType.opTypeDyOpScore); string str = OpResMgr.getInstance().getResultString(res); long remainScoreFixBug = -1; if (targetType == AccType.ACC_SUPER_ADMIN || targetType == AccType.ACC_SUPER_ADMIN_SUB) { remainScoreFixBug = 0; } else { remainScoreFixBug = ItemHelp.getRemainMoney(param.m_toAcc, targetType == AccType.ACC_PLAYER, user); } Dictionary <string, object> ret = new Dictionary <string, object>(); ret.Add("result", (int)res); ret.Add("resultInfo", str); string rs = (user.m_accType == AccType.ACC_SUPER_ADMIN || user.m_accType == AccType.ACC_SUPER_ADMIN_SUB) ? "0" : ItemHelp.toStrByComma(ItemHelp.showMoneyValue(user.m_money)); ret.Add("remainScoreStr", rs); ret.Add("remainScore", ItemHelp.showMoneyValue(user.m_money)); ret.Add("remainScoreFixBug", ItemHelp.showMoneyValue(remainScoreFixBug)); str = BaseJsonSerializer.genJsonStr(ret); context.Response.ContentType = "text/plain"; context.Response.Write(str); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck("", context.Session, context.Response); ParamMaxBetLimit param = new ParamMaxBetLimit(); param.m_gameId = Convert.ToInt32(context.Request.Form["gameId"]); if (param.m_gameId == (int)GameId.fishpark) { param.m_rateList = context.Request.Form["newValue"]; } else { param.m_newValue = Convert.ToInt32(context.Request.Form["newValue"]); } param.m_areaId = Convert.ToInt32(context.Request.Form["areaId"]); param.m_op = Convert.ToInt32(context.Request.Form["op"]); GMUser user = (GMUser)context.Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeModifyMaxBetLimit); string ret = ""; if (param.isModify()) { ret = ((int)res).ToString(); ret += "@" + OpResMgr.getInstance().getResultString(res); ret += "@" + param.m_gameId.ToString(); ret += "@" + param.m_areaId.ToString(); if (param.m_gameId == (int)GameId.fishpark) { ret += "@" + param.m_rateList; } else { ret += "@" + param.m_newValue.ToString(); } } else if (param.isQuery()) { Dictionary <string, object> qresult = (Dictionary <string, object>)user.getSys <DyOpMgr>(SysType.sysTypeDyOp).getDyOp(DyOpType.opTypeModifyMaxBetLimit).getResult(); ret = BaseJsonSerializer.genJsonStr(qresult); } else { ret = OpResMgr.getInstance().getResultString(res); } context.Response.ContentType = "text/plain"; context.Response.Write(ret); }
protected void onReset(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamFishlordParamAdjust p = new ParamFishlordParamAdjust(); p.m_isReset = true; p.m_roomList = "1"; p.m_gameId = GameId.calf_roping; OpRes res = user.doDyop(p, DyOpType.opTypeGameParamAdjust); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genExpRateTable(m_expRateTable); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck(RIGHT.DEL_ACCOUNT, context.Session, context.Response); ParamDelAcc param = new ParamDelAcc(); param.m_acc = context.Request.QueryString["acc"]; param.m_op = Convert.ToInt32(context.Request.QueryString["op"]); GMUser user = (GMUser)context.Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeDelAccount); string retStr = OpResMgr.getInstance().getResultString(res); context.Response.ContentType = "text/plain"; context.Response.Write(retStr); }
protected void onKickPlayer(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamPlayerOp param = new ParamPlayerOp(); param.m_acc = m_acc.Text; OpRes res = user.doDyop(param, DyOpType.opTypeKickPlayer); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); if (res == OpRes.opres_success) { m_res.InnerHtml += ",该玩家10分钟以内不能重新登录"; } }
protected void onAddWishCurse(object sender, EventArgs e) { ParamAddWishCurse param = new ParamAddWishCurse(); param.m_gameId = Convert.ToInt32(m_game.SelectedValue); param.m_opType = m_opType.SelectedIndex; param.m_wishType = m_type.SelectedIndex; param.m_playerId = m_playerId.Text; param.m_rate = m_rate.Text; GMUser user = (GMUser)Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeWishCurse); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
// 删除记录 protected void onDelRecord(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamDelDataScoreLog param = new ParamDelDataScoreLog(); param.m_tableName = TableName.GM_SCORE; param.m_timeRange = m_time.Text; param.m_opAcc = m_opAcc.Text; param.m_playerAcc = m_dstAcc.Text; OpRes res = user.doDyop(param, DyOpType.opTypeDelData); setOpRes(res); }
protected void onModifyExpRate(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamFishlordParamAdjust p = new ParamFishlordParamAdjust(); p.m_isReset = false; p.m_expRate = m_expRate.Text; p.m_roomList = m_roomList; OpRes res = user.doDyop(p, DyOpType.opTypeDragonParamAdjust); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genExpRateTable(m_expRateTable); }
protected void onReset(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamFishlordParamAdjust p = new ParamFishlordParamAdjust(); p.m_isReset = true; p.m_roomList = m_roomList; p.m_rightId = RightDef.D5_PARAM_CONTROL; OpRes res = user.doDyop(p, DyOpType.opTypeDragonParamAdjust); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genExpRateTable(m_expRateTable); }
public void ProcessRequest(HttpContext context) { RightMgr.getInstance().opCheck("modify", context.Session, context.Response); ParamModifyGmRight param = new ParamModifyGmRight(); param.m_acc = context.Request.Form["acc"]; param.m_right = context.Request.Form["rstr"]; param.m_op = 1; GMUser user = (GMUser)context.Session["user"]; OpRes res = user.doDyop(param, DyOpType.opTypeDyOpModiyGmRight); string retStr = OpResMgr.getInstance().getResultString(res); context.Response.ContentType = "text/plain"; context.Response.Write(retStr); }