优惠卷
This commit is contained in:
@@ -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>();
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace Hncore.Pass.Sells.Service
|
||||
this.m_CouponUserOrginService = m_CouponUserOrginService;
|
||||
}
|
||||
|
||||
public async Task<bool> Give(int couponId, string fromUser, int toUser, int count, CouponOriginType originType= CouponOriginType.Admin, string remark = "系统赠送", string toUserRef="")
|
||||
public async Task<bool> Give(int couponId, string fromUser, int toUser, int count, CouponOriginType originType= CouponOriginType.Admin, string remark = "系统赠送", string toUserRef="暂无")
|
||||
{
|
||||
var orginCoupon = new CouponUserOrginEntity()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user