www
parent
b36343c2d1
commit
568ff5ab11
|
|
@ -22,17 +22,19 @@ namespace New_College.Services
|
|||
private readonly IV_VipCardTypeRepository v_VipCardTypeRepository;
|
||||
private readonly IV_OrderInfoRepository v_OrderInfoRepository;
|
||||
private readonly IV_CustomerInfoRepository v_CustomerInfoRepository;
|
||||
|
||||
private readonly ID_UserSettingBaseServices d_UserSettingBase;
|
||||
public V_VipCardInfoServices(IBaseRepository<V_VipCardInfo> dal
|
||||
, IV_OrderInfoRepository IV_OrderInfoRepository
|
||||
, IV_VipCardTypeRepository IV_VipCardTypeRepository
|
||||
, IV_CustomerInfoRepository IV_CustomerInfoRepository)
|
||||
, IV_CustomerInfoRepository IV_CustomerInfoRepository,
|
||||
ID_UserSettingBaseServices d_UserSettingBase)
|
||||
{
|
||||
this._dal = dal;
|
||||
v_OrderInfoRepository = IV_OrderInfoRepository;
|
||||
v_VipCardTypeRepository = IV_VipCardTypeRepository;
|
||||
v_CustomerInfoRepository = IV_CustomerInfoRepository;
|
||||
base.BaseDal = dal;
|
||||
this.d_UserSettingBase = d_UserSettingBase;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -75,6 +77,11 @@ namespace New_College.Services
|
|||
var updateresult = await v_CustomerInfoRepository.Update(info);
|
||||
if (updateresult)
|
||||
{
|
||||
var isverfiy = await d_UserSettingBase.Query(c => c.CustomerId == query.CustomerId);
|
||||
if (!isverfiy.Any())
|
||||
{
|
||||
await d_UserSettingBase.SyncBaseInfo(new UserSettingBaseRequest() { CustomerId = query.CustomerId });
|
||||
}
|
||||
return new MessageModel<bool>() { success = true, msg = "绑定成功", response = true };
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue