调整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 else
{ {
response.IsVip = false; response.IsVip = true;
response.pcRole = new PCRole() response.pcRole = new PCRole()
{ {
ScoreCount = 3, ScoreCount = 3,

View File

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

View File

@ -138,7 +138,7 @@ namespace New_College.Model.ViewModels
/// <summary> /// <summary>
/// 是否为VIP /// 是否为VIP
/// </summary> /// </summary>
public bool IsVIP { get; set; } = false; public bool IsVIP { get; set; } = true;
public string VipCode { get; set; } 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) 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)); // 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 = isvip.Count() > 0 ? true : false;
info.IsVIP = true;
info.ModifyTime = DateTime.Now; info.ModifyTime = DateTime.Now;
await _dal.Update(info); await _dal.Update(info);
} }
@ -687,7 +688,7 @@ namespace New_College.Services
{ {
OpenId = register.openid, OpenId = register.openid,
CustomerType = CustomerTypeEnum.General, CustomerType = CustomerTypeEnum.General,
UUID=register.UnionId UUID = register.UnionId
}); });
return i; return i;
} }