淘宝处理
This commit is contained in:
@@ -573,19 +573,16 @@ namespace Home.Controllers
|
||||
Func<string, Task<bool>> process = async (data) =>
|
||||
{
|
||||
var notifyOrder = data.FromJsonTo<TaoBaoNotifyModel>();
|
||||
|
||||
LogHelper.Info("TaoBao process");
|
||||
if (notifyOrder == null || notifyOrder.Tid.NotHas())
|
||||
return false;
|
||||
|
||||
if (m_ScoreService.ExistTaoBaoScore(notifyOrder.Tid))
|
||||
return true;
|
||||
|
||||
var phone = notifyOrder.ReceiverMobile.NotHas() ? notifyOrder.ReceiverPhone : notifyOrder.ReceiverMobile;
|
||||
if (phone.NotHas()) return false;
|
||||
|
||||
var userEntity = await m_UserService.Query(m => m.Phone == phone).FirstOrDefaultAsync();
|
||||
|
||||
// var phone = notifyOrder.ReceiverMobile.NotHas() ? notifyOrder.ReceiverPhone : notifyOrder.ReceiverMobile;
|
||||
// if (phone.NotHas()) return false;
|
||||
var userEntity = await m_UserService.Query(m => m.TaoBao == notifyOrder.BuyerNick).FirstOrDefaultAsync();
|
||||
var phone = notifyOrder.BuyerNick;
|
||||
|
||||
if (userEntity == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user