/// <summary>
 /// 修改店铺微信帐户
 /// </summary>
 /// <param name="weChatAccount"></param>
 public static void UpdateWeChatAccount(Himall.DTO.WeChatAccount weChatAccount)
 {
     Himall.Model.ShopInfo shopInfo = _iShopService.GetShop(weChatAccount.ShopId);
     shopInfo.WeiXinOpenId   = weChatAccount.WeiXinOpenId;
     shopInfo.WeiXinSex      = weChatAccount.Sex.Equals("男") ? 1 : 0;
     shopInfo.WeiXinTrueName = weChatAccount.WeiXinRealName;
     shopInfo.WeiXinNickName = weChatAccount.WeiXinNickName;
     shopInfo.WeiXinAddress  = weChatAccount.Address;
     shopInfo.WeiXinImg      = weChatAccount.Logo;
     _iShopService.UpdateShop(shopInfo);
 }
示例#2
0
 /// <summary>
 /// 修改店铺微信帐户
 /// </summary>
 /// <param name="weChatAccount"></param>
 public static void UpdateWeChatAccount(Himall.DTO.WeChatAccount weChatAccount)
 {
     Himall.Model.ShopInfo shopInfo = _iShopService.GetShop(weChatAccount.ShopId);
     shopInfo.WeiXinOpenId   = weChatAccount.WeiXinOpenId;
     shopInfo.WeiXinSex      = weChatAccount.Sex.Equals("男") ? 1 : 0;
     shopInfo.WeiXinTrueName = weChatAccount.WeiXinRealName;
     shopInfo.WeiXinNickName = weChatAccount.WeiXinNickName;
     shopInfo.WeiXinAddress  = weChatAccount.Address;
     shopInfo.WeiXinImg      = weChatAccount.Logo;
     _iShopService.UpdateShop(shopInfo);
     Cache.Remove(CacheKeyCollection.CACHE_SHOPDTO(weChatAccount.ShopId, false));
     Cache.Remove(CacheKeyCollection.CACHE_SHOPDTO(weChatAccount.ShopId, true));
 }