private void Save() { StringBuilder sbLocalImage = new StringBuilder(); IList <string> list = new List <string>(); StoresInfo storeById = StoresHelper.GetStoreById(this.storeId); if (!storeById.WXState.HasValue) { this.AddWXStore(); } else if (storeById.WXState.HasValue && storeById.WXState.Value.Equals(WXStoreState.Pass)) { IEnumerable <string> enumerable = this.BuildImages(sbLocalImage, list); UpdateStoreData updateStoreData = new UpdateStoreData(); foreach (string item in enumerable) { updateStoreData.business.base_info.photo_list.Add(new Store_Photo { photo_url = item }); } updateStoreData.business.base_info.avg_price = this.txtWXAvgPrice.Text.ToInt(0); updateStoreData.business.base_info.introduction = this.txtWXIntroduction.Text.Trim(); updateStoreData.business.base_info.open_time = this.txtWXOpenTime.Text.Trim(); updateStoreData.business.base_info.recommend = this.txtWXRecommend.Text.Trim(); updateStoreData.business.base_info.poi_id = (storeById.WXPoiId.HasValue ? storeById.WXPoiId.Value.ToString() : string.Empty); updateStoreData.business.base_info.special = this.txtWXSpecial.Text.Trim(); updateStoreData.business.base_info.telephone = this.txtWXTelephone.Text.Trim(); WXStoreHelper.UpdateWXStore(updateStoreData); storeById.StoreImages = ((list.Count == 0) ? string.Empty : string.Join(",", list.ToArray())); StoresHelper.UpdateWXStore(updateStoreData, storeById.StoreId, storeById.StoreImages); } else { this.ShowMsg("微信门店审核中不能修改", false); } }