develop
old易 2024-06-24 16:28:37 +08:00
commit fe3c63f78d
2 changed files with 12 additions and 5 deletions

View File

@ -172,9 +172,9 @@ namespace New_College.Api.Controllers.Back
}).FirstOrDefault();
response.minProRole = list.Where(e => e.PType == 1).Select(c => new MinProRole()
{
ScoreCount = c.ScoreCount,
SearchCount = c.SearchCount,
ShowCount = c.ShowCount
ScoreCount = response.IsVip ? 999 : c.ScoreCount,
SearchCount = response.IsVip ? 999 : c.SearchCount,
ShowCount = response.IsVip ? 999 : c.ShowCount
}).FirstOrDefault();
}
else

View File

@ -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