示例#1
0
        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain"; context.Response.Expires = 0;
            string result = "false";

            try
            {
                currentUserInfo = bllKeyValueData.GetCurrentUserInfo();

                if (currentUserInfo == null)
                {
                    resp.errcode = (int)APIErrCode.UserIsNotLogin;
                    resp.errmsg  = "用户未登录";
                    result       = Common.JSONHelper.ObjectToJson(resp);
                    return;
                }

                string action = context.Request["Action"];
                switch (action)
                {
                case "PostWXTempmsg":
                    result = PostWXTempmsg(context);
                    break;

                case "GetWXTempmsg":
                    result = GetWXTempmsg(context);
                    break;

                case "List":
                    result = List(context);
                    break;

                case "Add":
                    result = Add(context);
                    break;

                case "Update":
                    result = Update(context);
                    break;

                case "Delete":
                    result = Delete(context);
                    break;
                }
            }
            catch (Exception ex)
            {
                resp.errcode = (int)APIErrCode.OperateFail;
                resp.errmsg  = ex.Message;
                result       = Common.JSONHelper.ObjectToJson(resp);
            }
            context.Response.Write(result);
        }
示例#2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            var moduleNameReq = Request["moduleName"];

            if (!string.IsNullOrWhiteSpace(moduleNameReq))
            {
                moduleName = moduleNameReq;
            }
            isHideVIPPrice             = Convert.ToInt32(Request["isHideVIPPrice"]);
            isHideVIPPrice0            = Convert.ToInt32(Request["isHideVIPPrice0"]);
            isHideVIPDatelong          = Convert.ToInt32(Request["isHideVIPDatelong"]);
            isHideVIPInterestID        = Convert.ToInt32(Request["isHideVIPInterestID"]);
            isShowSendNotice           = Convert.ToInt32(Request["isShowSendNotice"]);
            isShowMinScore             = Convert.ToInt32(Request["isShowMinScore"]);
            isShowMinWithdrawCashScore = Convert.ToInt32(Request["isShowMinWithdrawCashScore"]);

            UserInfo currentUserInfo = bllKeyValueData.GetCurrentUserInfo();

            if (currentUserInfo != null)
            {
                UserId               = currentUserInfo.UserID;
                Recharge             = bllKeyValueData.GetDataVaule("Recharge", "100", bllKeyValueData.WebsiteOwner);
                SendNoticePrice      = bllKeyValueData.GetDataVaule("SendNoticePrice", "1", bllKeyValueData.WebsiteOwner);
                VIPPrice             = bllKeyValueData.GetDataVaule("VIPPrice", "1", bllKeyValueData.WebsiteOwner);
                VIPPrice0            = bllKeyValueData.GetDataVaule("VIPPrice", "0", bllKeyValueData.WebsiteOwner);
                VIPDatelong          = bllKeyValueData.GetDataVaule("VIPDatelong", "1", bllKeyValueData.WebsiteOwner);
                VIPInterestID        = bllKeyValueData.GetDataVaule("VIPInterestID", "1", bllKeyValueData.WebsiteOwner);
                MinScore             = bllKeyValueData.GetDataVaule("MinScore", "1", bllKeyValueData.WebsiteOwner);
                MinWithdrawCashScore = bllKeyValueData.GetDataVaule("MinWithdrawCashScore", "1", bllKeyValueData.WebsiteOwner);
                if (!string.IsNullOrWhiteSpace(VIPInterestID))
                {
                    JuActivityInfo juAct = bllJuAct.GetJuActivity(Convert.ToInt32(VIPInterestID));
                    if (juAct != null)
                    {
                        VIPInterestDescription = juAct.ActivityDescription;
                    }
                }
                else
                {
                    VIPInterestID = "0";
                }
            }
        }