| | |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using CoreCms.Net.Auth.HttpContextUser; |
| | | using CoreCms.Net.Configuration; |
| | | using CoreCms.Net.IRepository; |
| | | using CoreCms.Net.IRepository.UnitOfWork; |
| | | using CoreCms.Net.IServices; |
| | | using CoreCms.Net.IServices.baifenbingfa; |
| | | using CoreCms.Net.Loging; |
| | | using CoreCms.Net.Model.Entities; |
| | | using CoreCms.Net.Model.Entities.Expression; |
| | |
| | | private readonly ICoreCmsSolitaireServices _solitaireServices; |
| | | private readonly ICoreCmsUserShipServices _userShipServices; |
| | | private readonly ICoreCmsStoreServices _storeServices; |
| | | private readonly IBfbfComAPIService _bfbfComAPIService; |
| | | private readonly IHttpContextUser _user; |
| | | |
| | | public CoreCmsCartServices( |
| | | ICoreCmsCartRepository dal |
| | |
| | | , ICoreCmsUserServices userServices |
| | | , ICoreCmsSettingServices settingServices |
| | | , ICoreCmsProductsServices productsServices |
| | | , ICoreCmsPinTuanGoodsServices pinTuanGoodsServices, ICoreCmsPromotionConditionServices promotionConditionServices, ICoreCmsGoodsServices goodsServices, ICoreCmsGoodsCategoryServices goodsCategoryServices, ICoreCmsPromotionResultServices promotionResultServices, ICoreCmsPinTuanRecordServices pinTuanRecordServices, ICoreCmsSolitaireServices solitaireServices, ICoreCmsUserShipServices userShipServices, ICoreCmsStoreServices storeServices) |
| | | , ICoreCmsPinTuanGoodsServices pinTuanGoodsServices |
| | | , IBfbfComAPIService bfbfComAPIService |
| | | ,ICoreCmsPromotionConditionServices promotionConditionServices |
| | | , ICoreCmsGoodsServices goodsServices |
| | | , ICoreCmsGoodsCategoryServices goodsCategoryServices |
| | | , ICoreCmsPromotionResultServices promotionResultServices |
| | | , ICoreCmsPinTuanRecordServices pinTuanRecordServices |
| | | , ICoreCmsSolitaireServices solitaireServices |
| | | , ICoreCmsUserShipServices userShipServices |
| | | , ICoreCmsStoreServices storeServices |
| | | ,IHttpContextUser user) |
| | | { |
| | | this._dal = dal; |
| | | base.BaseDal = dal; |
| | |
| | | _solitaireServices = solitaireServices; |
| | | _userShipServices = userShipServices; |
| | | _storeServices = storeServices; |
| | | _bfbfComAPIService = bfbfComAPIService; |
| | | _user = user; |
| | | } |
| | | |
| | | #region 设置购物车商品数量==================================================== |
| | |
| | | { |
| | | case (int)GlobalEnumVars.OrderType.Common: |
| | | //标准模式不需要修改订单数据和商品数据 |
| | | { |
| | | if(await _bfbfComAPIService.IsDictionary(_user.ID)) |
| | | { |
| | | foreach (var item in cartDto.list) |
| | | { |
| | | item.products.price=item.products.distributionPrice; |
| | | |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | case (int)GlobalEnumVars.OrderType.PinTuan: |
| | | //拼团模式走拼团价,去修改商品价格 |