Beispiel #1
0
        public void Eidt(HttpContext context)
        {
            long num = context.Request.Form["ids"].ToLong(0);

            if (num < 0)
            {
                throw new HidistroAshxException("错误的参数");
            }
            string text = context.Request["Remark"];

            if (string.IsNullOrEmpty(text) || text.Length > 15)
            {
                throw new HidistroAshxException("设备的备注信息,不超过15个汉字或30个英文字母。");
            }
            WxJsonResult wxJsonResult = WXStoreHelper.DeviceUpdate(num, text);

            if (wxJsonResult.errcode.Equals(ReturnCode.请求成功))
            {
                base.ReturnSuccessResult(context, "修改备注成功!", 0, true);
            }
        }