淘宝处理

This commit is contained in:
“wanyongkang”
2020-12-26 22:09:43 +08:00
parent 09dd83aafe
commit 426fd93b75
6 changed files with 20 additions and 14 deletions

View File

@@ -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)
{