/// <summary> /// 修改门店信息 /// </summary> private void UpdateShopInfo() { string shopname = GetFormValue("shopname", ""); string username = GetFormValue("username", ""); string usermobile = GetFormValue("usermobile", ""); string userloginname = GetFormValue("userloginname", ""); string password = GetFormValue("password", ""); string shopprov = GetFormValue("shopprov", ""); string shopcity = GetFormValue("shopcity", ""); string shopaddress = GetFormValue("shopaddress", ""); ApiStatusCode apiCode; bool flag = ShopLogic.EditShopInfo(new ShopModel() { ShopID = ShopID, ShopName = shopname, ShopArea = "", ShopAddress = shopaddress, ShopBelongId = user.UserIndentity == 0 ? 0 : user.ID, ShopCity = shopcity, ShopProv = shopprov, Contacts = username, ContactWay = usermobile, LoginName = userloginname, LoginPassword = password, IsActive = 1, ShopType = user.UserIndentity == 0 ? 1 : 2 }, out apiCode); if (flag) { json = JsonHelper.JsonSerializer(new ResultModel(ApiStatusCode.OK)); } else { json = JsonHelper.JsonSerializer(new ResultModel(apiCode)); } }