コード例 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        JToken result = new JObject();
        string method = Request.HttpMethod;

        if (method == "POST")
        {
            req = glbf.GetReqInputStream();
            string action = (req["action"] ?? "").ToString();
            if (action != "view" && action != "getMemberReport")
            {
                result["result"]    = "fail";
                result["errorCode"] = ApiErrorCodes.ActionError;
                Response.Write(JsonConvert.SerializeObject(result));
            }
            if (action == "view")
            {
            }
            else if (action == "getMemberReport")
            {
                GetMemberReport();
            }
        }
        Response.End();
    }
コード例 #2
0
ファイル: agentDelete.aspx.cs プロジェクト: Rephyuan/Lottery
    protected void Page_Load(object sender, EventArgs e)
    {
        string method = Request.HttpMethod;

        if (method == "POST")
        {
            req = glbf.GetReqInputStream();

            string action = (req["action"] ?? "").ToString();
            if (action == "view")
            {
            }
            else if (action == "agentDelete")
            {
                DeleteAgent();
            }
        }
        Response.End();
    }