调整代码逻辑不是vip才调用接口

develop
old易 2024-03-18 10:27:22 +08:00
parent 318be8b2d7
commit 92b495b9f6
1 changed files with 5 additions and 2 deletions

View File

@ -321,7 +321,7 @@ namespace New_College.Services
return new MessageModel<CustomerInfoResult>() { success = false, msg = "获取失败,用户信息为空" };
var years = info.Year > 2023 ? 2023 : info.Year;
var batchlist = await t_BatchlineRepository.Query(c => c.Year == years && c.AreaName == info.AreaName && c.Type_name == "综合");
if (!string.IsNullOrWhiteSpace(info.Phone))
if (!string.IsNullOrWhiteSpace(info.Phone) && !info.IsVIP)
{
Task.Run(async () =>
{
@ -515,7 +515,10 @@ namespace New_College.Services
var userinfo = (await _dal.Query(w => w.OpenId == query.openId && w.IsDelete == false)).ToList().FirstOrDefault();
if (userinfo != null)
{
await SyncXET(userinfo);
if (!userinfo.IsVIP)
{
await SyncXET(userinfo);
}
return new Tuple<bool, CustomerInfoResult>(true, new CustomerInfoResult()
{
AreaId = userinfo.AreaId,