protected void onDelCard(object sender, EventArgs e) { if (IsRefreshed) { return; } GMUser user = (GMUser)Session["user"]; if (string.IsNullOrEmpty(m_sel)) { m_res.InnerHtml = OpResMgr.getInstance().getResultString(OpRes.op_res_failed); return; } DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); ParamCowsCard param = new ParamCowsCard(); param.m_op = 1; string [] arr = Tool.split(m_sel, ',', StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < arr.Length; i++) { param.m_data = arr[i]; mgr.doDyop(param, DyOpType.opTypeSetCowsCard, user); } genTable(m_allCards, user); }
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); }
protected void onCreateAccount(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamCreateGmAccount param = new ParamCreateGmAccount(); param.m_pwd1 = m_pwd1.Text; param.m_pwd2 = m_pwd2.Text; param.m_accName = m_accName.Text; param.m_aliasName = m_aliasName.Text; // param.m_washRatio = m_washRatio.Text; if (m_hasWashRation.Checked) { param.m_washRatio = (user.m_washRatio * 100).ToString(); } else { param.m_washRatio = "0"; } DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeDyOpCreatePlayer, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); if (res == OpRes.opres_success) { m_res.InnerHtml += "," + OpResMgr.getInstance().getResultString(OpRes.op_res_player_account_info, param.m_resultAcc); } else if (res == OpRes.op_res_failed) { m_res.InnerHtml += "," + OpResMgr.getInstance().getResultString(OpRes.op_res_error_code, param.m_resultAcc); } }
protected void Page_Load(object sender, EventArgs e) { RightMgr.getInstance().opCheck("operation", Session, Response); if (IsPostBack) { m_platList = Request["sel"]; if (m_platList == null) { m_platList = ""; } } else { m_platform.Items.Add("default"); for (int i = (int)PaymentType.e_pt_none + 1; i < (int)PaymentType.e_pt_max; i++) { PlatformInfo data = ResMgr.getInstance().getPlatformInfo(i); if (data == null) { m_platform.Items.Add("###"); } else { m_platform.Items.Add(data.m_chaName); } } GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); genTable(m_result, user, mgr); } }
protected void _addTestChannel(CheckBoxList checkList) { ParamAddChannel param = new ParamAddChannel(); param.m_isAdd = true; /*foreach (var node in trvAllChannel.CheckedNodes) * { * TreeNode t = (TreeNode)node; * param.m_channels.Add(t.Value); * }*/ foreach (ListItem item in checkList.Items) { if (item.Selected) { param.m_channels.Add(item.Value); } } GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeEditChannel, user); if (res == OpRes.opres_success) { // genSrcChannel(); genTestChannel(); } }
protected void onModify(object sender, EventArgs e) { ParamModifyLoginPwd param = new ParamModifyLoginPwd(); param.m_acc = m_accList.SelectedValue; param.m_oriPwd = m_oriPwd.Text; if (opPwd.Checked) { param.m_pwd1 = m_pwd1.Text; param.m_pwd2 = m_pwd2.Text; param.m_op = 0; } else { param.m_pwd1 = m_verCode1.Text; param.m_pwd2 = m_verCode2.Text; param.m_op = 1; } GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeModifyLoginPwd, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onAddCardType(object sender, EventArgs e) { if (IsRefreshed) { return; } GMUser user = (GMUser)Session["user"]; ParamCowsCard param = new ParamCowsCard(); ParamAddCowsCard p = new ParamAddCowsCard(); p.m_bankerType = Convert.ToInt32(m_banker.SelectedValue); p.m_other1Type = Convert.ToInt32(m_other1.SelectedValue); p.m_other2Type = Convert.ToInt32(m_other2.SelectedValue); p.m_other3Type = Convert.ToInt32(m_other3.SelectedValue); p.m_other4Type = Convert.ToInt32(m_other4.SelectedValue); param.m_data = p; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeSetCowsCard, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genTable(m_allCards, user); }
protected void Page_Load(object sender, EventArgs e) { RightMgr.getInstance().opCheck("operation", Session, Response); if (!IsPostBack) { m_queryWay.Items.Add("已过期"); m_queryWay.Items.Add("未过期"); } else { if (m_modifyInfo.Value != "") { GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); ParamGift param = new ParamGift(); param.m_isAdd = false; param.m_itemList = m_modifyInfo.Value; OpRes res = mgr.doDyop(param, DyOpType.opTypeGift, user); if (param.m_result != "") { m_res.InnerHtml = string.Format("礼包[{0}]更新失败!", param.m_result); } else { m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); } genTable(m_result, user); } } }
protected void onSendMail(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamSendMail param = new ParamSendMail(); param.m_title = m_title.Text; param.m_sender = m_sender.Text; param.m_content = m_content.Text; param.m_validDay = m_validDay.Text; param.m_toPlayer = m_toPlayer.Text; param.m_itemList = m_itemList.Text; param.m_target = m_target.SelectedIndex; param.m_isCheck = m_chk.Checked; param.m_condLogoutTime = m_logOutTime.Text; param.m_condVipLevel = m_vipLevel.Text; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeSendMail, user); if (res == OpRes.op_res_item_not_exist) { m_res.InnerHtml = string.Format("道具[{0}]不存在,请检测!", param.m_result); } else if (res == OpRes.op_res_player_not_exist) { m_res.InnerHtml = string.Format("玩家[{0}]不存在,请检测!", param.m_result); } else { m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); } }
protected void onAddApp(object sender, EventArgs e) { ParamJPushAddApp p = new ParamJPushAddApp(); p.m_isAdd = true; PlatformInfo data = ResMgr.getInstance().getPlatformInfo(m_platform.SelectedIndex); if (data != null) { p.m_platName = data.m_engName; } else { p.m_platName = "default"; } p.m_appKey = m_appKey.Text; p.m_apiSecret = m_apiSecret.Text; p.m_appName = m_appName.Text; GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypePushApp, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genTable(m_result, user, mgr); }
protected void onCreateAccount(object sender, EventArgs e) { ParamCreateGmAccount param = new ParamCreateGmAccount(); param.m_accType = AccType.ACC_GENERAL_AGENCY; param.m_accName = m_accName.Text; param.m_pwd1 = m_pwd1.Text; param.m_pwd2 = m_pwd2.Text; // param.m_moneyType = m_moneyType.SelectedIndex; param.m_aliasName = m_aliasName.Text; param.m_agentRatio = m_agentRatio.Text; param.m_washRatio = m_washRatio.Text; GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeDyOpCreateGmAccount, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); if (res == OpRes.opres_success) { m_res.InnerHtml += "," + OpResMgr.getInstance().getResultString(OpRes.op_res_account_info, param.m_resultAcc, param.m_validatedCode); } }
protected void onLoad(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(m_table.SelectedIndex, DyOpType.opTypeReLoadTable, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onClearFishTable(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(null, DyOpType.opTypeClearFishTable, user); m_result.Rows.Clear(); genTable(m_result); }
protected void onModifyGift(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamGift p = createParamGift(false); DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeGift, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onActivateGift(object sender, EventArgs e) { if (m_selectStr != "") { GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(m_selectStr, DyOpType.opTypeExchange, user); onSearch(null, null); } }
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 onDelApp(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamJPushAddApp p = new ParamJPushAddApp(); p.m_isAdd = false; p.m_platName = m_platList; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); mgr.doDyop(p, DyOpType.opTypePushApp, user); genTable(m_result, user, mgr); }
protected void onCancel(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamMaintenance p = new ParamMaintenance(); p.m_opType = 2; p.m_content = m_info.Text; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeMaintenance, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onModify(object sender, EventArgs e) { ParamModifyPwd p = new ParamModifyPwd(); p.m_account = m_account.Text; p.m_phone = m_phone.Text; GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeBindPhone, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onFreeze(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamFreezeHeadInfo p = new ParamFreezeHeadInfo(); p.m_playerId = m_playerId.Text; p.m_freezeDays = m_freezeDays.Text; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeFreezeHead, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onBlockAccount(object sender, EventArgs e) { ParamBlock p = new ParamBlock(); p.m_isBlock = true; p.m_param = m_acc.Text; GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeBlockAcc, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genTable(m_result, user, mgr); }
protected void onModify(object sender, EventArgs e) { ParamModifyPwd p = new ParamModifyPwd(); p.m_playerId = m_account.Text; p.m_newPwd = m_newPwd.Text; p.m_pwdType = Convert.ToInt32(m_pwdType.SelectedValue); GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeModifyPwd, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onSendMail(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); if (m_strList == "") { genTable(m_result, user, mgr); return; } DyOpSendMail dyip = (DyOpSendMail)mgr.getDyOp(DyOpType.opTypeSendMail); string[] str = Tool.split(m_strList, ','); for (int i = 0; i < str.Length; i++) { ParamSendMail param = new ParamSendMail(); Dictionary <string, object> data = dyip.getCheckMail(user, str[i]); if (data != null) { param.m_title = Convert.ToString(data["title"]); param.m_sender = Convert.ToString(data["sender"]); param.m_content = Convert.ToString(data["content"]); param.m_validDay = Convert.ToString(data["validDay"]); param.m_toPlayer = Convert.ToString(data["toPlayer"]); param.m_itemList = Convert.ToString(data["itemList"]); param.m_target = Convert.ToInt32(data["target"]); param.m_condVipLevel = Convert.ToString(data["vipLevel"]); param.m_condLogoutTime = Convert.ToString(data["logOutTime"]); if (data.ContainsKey("comment")) { param.m_comment = Convert.ToString(data["comment"]); } param.m_isCheck = false; OpRes res = dyip.doDyop(param, user); if (param.m_result == "" && res == OpRes.opres_success) { dyip.removeCheckMail(user, str[i]); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); } else { m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); } } } genTable(m_result, user, mgr); }
private void genTable(Table table, GMUser user, DyOpMgr mgr) { table.GridLines = GridLines.Both; TableRow tr = new TableRow(); table.Rows.Add(tr); TableCell td = null; int i = 0, j = 0; // 表头 for (i = 0; i < s_head.Length; i++) { td = new TableCell(); tr.Cells.Add(td); td.Text = s_head[i]; } List <ParamCheckMail> resultList = new List <ParamCheckMail>(); DyOpSendMail dyip = (DyOpSendMail)mgr.getDyOp(DyOpType.opTypeSendMail); dyip.getCheckMailList(user, resultList); for (i = 0; i < resultList.Count; i++) { tr = new TableRow(); table.Rows.Add(tr); m_content[0] = resultList[i].m_result; m_content[1] = resultList[i].m_target == 0 ? "给指定玩家发送" : "全服发送"; m_content[2] = resultList[i].m_title; m_content[3] = resultList[i].m_sender; m_content[4] = resultList[i].m_content; m_content[5] = resultList[i].m_validDay; m_content[6] = resultList[i].m_toPlayer; m_content[7] = resultList[i].m_itemList; m_content[8] = resultList[i].m_condLogoutTime; m_content[9] = resultList[i].m_condVipLevel; m_content[10] = resultList[i].m_comment; m_content[11] = Tool.getCheckBoxHtml("sel", resultList[i].m_id, false); for (j = 0; j < s_head.Length; j++) { td = new TableCell(); tr.Cells.Add(td); td.Text = m_content[j]; } } }
protected void onDelInfo(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; if (m_delList != "") { ParamServiceInfo param = new ParamServiceInfo(); param.m_key = m_delList; param.m_isAdd = false; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeServiceInfo, user); genTable(m_curHelp, user); } }
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; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(p, DyOpType.opTypeCowsParamAdjust, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); genExpRateTable(m_expRateTable); }
protected void onCancelNotice(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; if (m_selectStr != "") { ParamNotify param = new ParamNotify(); param.m_opType = NoticeOpType.del; param.m_id = m_selectStr; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeNotify, user); } genTable(m_result, user); }
protected void btnSend_Click(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamSpeaker param = new ParamSpeaker(); param.m_content = txtContent.Text; param.m_sendTime = txtSendTime.Text; param.m_repCount = txtRepCount.Text; // param.m_interval = txtInterval.Text; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeSpeaker, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); }
protected void onCreateAccount(object sender, EventArgs e) { ParamCreateGmAccount param = new ParamCreateGmAccount(); param.m_accType = Convert.ToInt32(m_type.SelectedValue); param.m_pwd1 = m_pwd1.Text; param.m_pwd2 = m_pwd2.Text; param.m_agentRatio = m_agentRatio.Text; param.m_washRatio = m_washRatio.Text; if (param.m_accType == AccType.ACC_AGENCY) // 下级代理 { param.m_accName = m_accName.Text; string r = ""; for (int i = 0; i < m_right.Items.Count; i++) { if (m_right.Items[i].Selected) { r += m_right.Items[i].Value;// RightMap.getRightName(Convert.ToInt32(m_right.Items[i].Value)); r += ","; } } param.m_right = r; } else if (param.m_accType == AccType.ACC_API) // API账号 { param.m_accName = m_accName1.Text; param.m_apiPrefix = m_apiPrefix.Text; } else // 子账号 { param.m_accName = m_accName.Text; } param.m_aliasName = m_aliasName.Text; GMUser user = (GMUser)Session["user"]; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); OpRes res = mgr.doDyop(param, DyOpType.opTypeDyOpCreateGmAccount, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); if (res == OpRes.opres_success) { m_res.InnerHtml += "," + OpResMgr.getInstance().getResultString(OpRes.op_res_account_info, param.m_resultAcc, param.m_validatedCode); } }
protected void onUnBlockAccount(object sender, EventArgs e) { GMUser user = (GMUser)Session["user"]; ParamBlock p = new ParamBlock(); p.m_isBlock = false; p.m_param = m_accList; DyOpMgr mgr = user.getSys <DyOpMgr>(SysType.sysTypeDyOp); if (p.m_param != string.Empty) { OpRes res = mgr.doDyop(p, DyOpType.opTypeBlockAcc, user); m_res.InnerHtml = OpResMgr.getInstance().getResultString(res); } genTable(m_result, user, mgr); }