/// <summary> /// 设置购物车与会员关联 /// </summary> /// <param name="phone">手机</param> /// <param name="mode">会员来源模式</param> public MemberInfo SetMember(string cardNo, string phone, MembersSourseMode mode) { var memberCardManager = new MemberCardManager(); var memberInfo = memberCardManager.GetMemberInfo(MachineInformation.StoreId, MachineInformation.MachineSn, MachineInformation.CompanyId, phone, cardNo, mode, MachineInformation.CashierUid); MemberInfo = memberInfo; if (memberInfo != null) { MemberId = memberInfo.RecordId; } return(memberInfo); }
public MovieAppService(IRepository <Movie> repository, IRepository <MovieHint> movieHintRepository, MemberCardManager memberCardManager) : base(repository) { _memberCardManager = memberCardManager; _movieHintRepository = movieHintRepository; }