Esempio n. 1
0
        public void ProcessRequest(HttpContext context)
        {
            string ruleIds = context.Request["rule_ids"];

            if (string.IsNullOrEmpty(ruleIds))
            {
                apiResp.code = (int)APIErrCode.PrimaryKeyIncomplete;
                apiResp.msg  = "rule_ids 参数必传";
                context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(apiResp));
                return;
            }
            string msg    = "";
            bool   result = bllMall.DeleteProductGroupBuyRule(ruleIds, out msg);

            if (result)
            {
                apiResp.status = true;
                apiResp.msg    = "ok";
            }
            else
            {
                apiResp.msg  = msg;
                apiResp.code = (int)APIErrCode.OperateFail;
            }
            context.Response.Write(ZentCloud.Common.JSONHelper.ObjectToJson(apiResp));
        }