bug fixed
parent
92b495b9f6
commit
cd89c589ce
|
|
@ -896,6 +896,11 @@
|
||||||
学校
|
学校
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="P:New_College.Model.Models.D_PlanMajorScoreLine.SubjectType">
|
||||||
|
<summary>
|
||||||
|
综合/理科/文科
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
<member name="P:New_College.Model.Models.D_PlanMajorScoreLine.BatchName">
|
<member name="P:New_College.Model.Models.D_PlanMajorScoreLine.BatchName">
|
||||||
<summary>
|
<summary>
|
||||||
批次
|
批次
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ namespace New_College.Model.Models
|
||||||
public string UniversityName { get; set; }
|
public string UniversityName { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 综合/理科/文科
|
||||||
|
/// </summary>
|
||||||
|
public string SubjectType { get; set; }
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 批次
|
/// 批次
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ using Newtonsoft.Json;
|
||||||
using New_College.Common.HttpRestSharp;
|
using New_College.Common.HttpRestSharp;
|
||||||
using StackExchange.Profiling.Internal;
|
using StackExchange.Profiling.Internal;
|
||||||
using New_College.Repository;
|
using New_College.Repository;
|
||||||
|
using System.Xml.Linq;
|
||||||
|
|
||||||
namespace New_College.Services
|
namespace New_College.Services
|
||||||
{
|
{
|
||||||
|
|
@ -368,50 +369,52 @@ namespace New_College.Services
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private async Task<V_CustomerInfo> SyncXET(V_CustomerInfo info)
|
private async Task<V_CustomerInfo> SyncXET(V_CustomerInfo info)
|
||||||
{
|
{
|
||||||
|
if (!string.IsNullOrWhiteSpace(info.Phone)) {
|
||||||
var xet = XiaoEtongApp.GetUsersList(new UserRequest()
|
var xet = XiaoEtongApp.GetUsersList(new UserRequest()
|
||||||
{
|
{
|
||||||
phone = info.Phone,
|
phone = info.Phone,
|
||||||
page = 1,
|
page = 1,
|
||||||
page_size = 1,
|
page_size = 1,
|
||||||
});
|
});
|
||||||
if (xet.data.list != null && xet.data.list.Count() > 0)
|
if (xet != null && xet.data.list != null && xet.data.list.Count() > 0)
|
||||||
{
|
|
||||||
var xiaoetong = (await _XiaoEtongUserRepository.Query(e => e.collect_phone == info.Phone));
|
|
||||||
if (!xiaoetong.Any())
|
|
||||||
{
|
{
|
||||||
await _XiaoEtongUserRepository.Add(new D_XiaoEtongUser()
|
var xiaoetong = (await _XiaoEtongUserRepository.Query(e => e.collect_phone == info.Phone));
|
||||||
|
if (!xiaoetong.Any())
|
||||||
{
|
{
|
||||||
avatar = xet.data.list.First().avatar,
|
await _XiaoEtongUserRepository.Add(new D_XiaoEtongUser()
|
||||||
bind_phone = xet.data.list.First().bind_phone,
|
{
|
||||||
collect_phone = xet.data.list.First().collect_phone,
|
avatar = xet.data.list.First().avatar,
|
||||||
CreateBy = "system",
|
bind_phone = xet.data.list.First().bind_phone,
|
||||||
CreateTime = DateTime.Now,
|
collect_phone = xet.data.list.First().collect_phone,
|
||||||
from = xet.data.list.First().from,
|
CreateBy = "system",
|
||||||
IsDelete = false,
|
CreateTime = DateTime.Now,
|
||||||
ModifyBy = "system",
|
from = xet.data.list.First().from,
|
||||||
ModifyTime = DateTime.Now,
|
IsDelete = false,
|
||||||
OrderSort = 0,
|
ModifyBy = "system",
|
||||||
pay_sum = xet.data.list.First().pay_sum,
|
ModifyTime = DateTime.Now,
|
||||||
punch_count = xet.data.list.First().punch_count,
|
OrderSort = 0,
|
||||||
user_created_at = xet.data.list.First().user_created_at,
|
pay_sum = xet.data.list.First().pay_sum,
|
||||||
user_nickname = xet.data.list.First().user_nickname,
|
punch_count = xet.data.list.First().punch_count,
|
||||||
wx_app_open_id = xet.data.list.First().wx_app_open_id,
|
user_created_at = xet.data.list.First().user_created_at,
|
||||||
wx_open_id = xet.data.list.First().wx_open_id,
|
user_nickname = xet.data.list.First().user_nickname,
|
||||||
wx_union_id = xet.data.list.First().wx_union_id,
|
wx_app_open_id = xet.data.list.First().wx_app_open_id,
|
||||||
user_id = xet.data.list.First().user_id
|
wx_open_id = xet.data.list.First().wx_open_id,
|
||||||
});
|
wx_union_id = xet.data.list.First().wx_union_id,
|
||||||
var orders = XiaoEtongApp.GetOrdersList(new XETOrdersRequest()
|
user_id = xet.data.list.First().user_id
|
||||||
{
|
});
|
||||||
page = 1,
|
var orders = XiaoEtongApp.GetOrdersList(new XETOrdersRequest()
|
||||||
page_size = 30,
|
{
|
||||||
user_id = xet.data.list.First().user_id
|
page = 1,
|
||||||
});
|
page_size = 30,
|
||||||
if (orders.data.list.Any() && orders.data.list.Count() > 0 && !info.IsVIP)
|
user_id = xet.data.list.First().user_id
|
||||||
{
|
});
|
||||||
var isvip = orders.data.list.Select(c => c.order_info).Where(e => e.activity_type_bitmap.Contains(11));
|
if (orders.data.list.Any() && orders.data.list.Count() > 0 && !info.IsVIP)
|
||||||
info.IsVIP = isvip.Count() > 0 ? true : false;
|
{
|
||||||
info.ModifyTime = DateTime.Now;
|
var isvip = orders.data.list.Select(c => c.order_info).Where(e => e.activity_type_bitmap.Contains(11));
|
||||||
await _dal.Update(info);
|
info.IsVIP = isvip.Count() > 0 ? true : false;
|
||||||
|
info.ModifyTime = DateTime.Now;
|
||||||
|
await _dal.Update(info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue