//更新用户信息
        public JsonResult updateUserInfo(string deviceId, string fieldName, string fieldValue)
        {
            var res = new JsonResult();

            BLL.User user = new BLL.User();
            bool     flag = user.UpdateUserInfo(deviceId, fieldName, fieldValue);

            if (flag)
            {
                res.Data = new
                {
                    success = true
                };
            }
            else
            {
                res.Data = new
                {
                    success = false,
                    backMsg = "修改失败,请重试"
                };
            }
            res.JsonRequestBehavior = JsonRequestBehavior.AllowGet;//允许使用GET方式获取,否则用GET获取是会报错。

            return(res);
        }