Пример #1
0
        // <summary>
        /// 更改地址为默认
        /// </summary>
        /// <param name="uid"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        public string UpdateDefaultAddress(string uid, string id)
        {
            string res = "";

            try
            {
                bool resb = addrdal.UpdateDefaultAddress(uid, Convert.ToInt32(id));
                res = JsonConvert.SerializeObject(new { code = 0, msg = "ok", upstate = resb });
            }
            catch (Exception ex)
            {
                res = JsonConvert.SerializeObject(new { code = 10003, msg = "系统故障", count = 0 });
                LogHelper.ErrorLog("UpdateDefaultAddress异常:" + ex.Message + "," + ex.StackTrace);
            }
            return(res);
        }