调整vip 逻辑

develop
old易 2024-10-30 12:11:01 +08:00
parent 7f5b7f46d9
commit a4db171a4e
4 changed files with 7 additions and 6 deletions

View File

@ -179,7 +179,7 @@ namespace New_College.Api.Controllers.Back
}
else
{
response.IsVip = false;
response.IsVip = true;
response.pcRole = new PCRole()
{
ScoreCount = 3,

View File

@ -134,7 +134,7 @@ namespace New_College.Model.Models
/// <summary>
/// 是否为VIP
/// </summary>
public bool IsVIP { get; set; } = false;
public bool IsVIP { get; set; } = true;
[SugarColumn(IsNullable = true)]
public string VipCode { get; set; }

View File

@ -138,7 +138,7 @@ namespace New_College.Model.ViewModels
/// <summary>
/// 是否为VIP
/// </summary>
public bool IsVIP { get; set; } = false;
public bool IsVIP { get; set; } = true;
public string VipCode { get; set; }

View File

@ -481,8 +481,9 @@ namespace New_College.Services
});
if (orders.data.list.Any() && orders.data.list.Count() > 0 && !info.IsVIP)
{
var isvip = orders.data.list.Select(c => c.order_info).Where(e => e.activity_type_bitmap.Contains(11));
info.IsVIP = isvip.Count() > 0 ? true : false;
// var isvip = orders.data.list.Select(c => c.order_info).Where(e => e.activity_type_bitmap.Contains(11));
// info.IsVIP = isvip.Count() > 0 ? true : false;
info.IsVIP = true;
info.ModifyTime = DateTime.Now;
await _dal.Update(info);
}
@ -687,7 +688,7 @@ namespace New_College.Services
{
OpenId = register.openid,
CustomerType = CustomerTypeEnum.General,
UUID=register.UnionId
UUID = register.UnionId
});
return i;
}