优惠卷

This commit is contained in:
wanyongkang
2020-10-16 17:13:33 +08:00
parent 8faeaa64bb
commit 0c08105fb3
2 changed files with 7 additions and 2 deletions

View File

@@ -600,6 +600,11 @@ namespace Home.Controllers
if (ret.Code != ResultCode.C_SUCCESS) return false;
} else {
phone = userEntity.Phone;
if(userEntity.TaoBao == null){
userEntity.TaoBao= notifyOrder.BuyerNick;
await m_UserService.Update(userEntity);
}
}
var amountInfo = new UpdateAmountRequest()
@@ -611,7 +616,7 @@ namespace Home.Controllers
AttchInfo = notifyOrder.Tid
};
var retAmount = await m_UserService.UpdateAmount(amountInfo);
await m_CouponService.TaoBaoGive(userEntity.Id, 9, userEntity.TaoBao);
await m_CouponService.TaoBaoGive(userEntity.Id, 9, notifyOrder.BuyerNick);
var taobaoEntity = notifyOrder.MapTo<TaoBaoOrderEntity>();