Exemplo n.º 1
0
        private void Delete(HttpContext context)
        {
            string      text = context.Request["ids"];
            IList <int> list = new List <int>();

            if (text.Length < 0)
            {
                throw new HidistroAshxException("错误的参数!");
            }
            string[] array = text.Split(',');
            foreach (string text2 in array)
            {
                if (!string.IsNullOrEmpty(text2))
                {
                    list.Add(text2.ToInt(0));
                }
            }
            int num = 0;

            string[] array2 = text.Split(',');
            foreach (string obj in array2)
            {
                VShopHelper.DeleteAppPushRecord(obj.ToInt(0));
                num++;
            }
            if (num > 0)
            {
                base.ReturnSuccessResult(context, "删除成功!", 0, true);
                return;
            }
            throw new HidistroAshxException("请先选择需要删除的消息!");
        }