优惠券

This commit is contained in:
“wanyongkang”
2021-03-30 21:17:43 +08:00
parent 7ede35d5cf
commit 99e6255230
15 changed files with 141 additions and 53 deletions

View File

@@ -599,7 +599,7 @@ namespace Home.Controllers
pas_result += rnd.ToString();
}
Console.WriteLine("==================================================================");
// Console.WriteLine("==================================================================");
string msg = "";
@@ -615,7 +615,7 @@ namespace Home.Controllers
id_code=""
};
var ret = await m_UserService.Regist(userEntity);
msg = "您好打开网址juip.com登录会员名"+phone+""+notifyOrder.Payment+"元已充值到此账户),密码:"+pas_result+"。登录后点击网站上方的-产品购买,即可完成开通或续费。淘宝付款将随机赠送优惠券,欢迎您多来淘宝下单";
msg = "您好打开网址juip.com登录会员名"+phone+""+notifyOrder.Payment+"元已充值到此账户),密码:"+pas_result+"。登录后点击网站上方的-产品购买,即可完成开通或续费。恭喜您本次获得优惠券满4元减1元满20元减3元满54元减5元满130元减15元满490元减30元各一张。欢迎您多来淘宝下单";
if (ret.Code != ResultCode.C_SUCCESS) return msg;
} else {
@@ -625,7 +625,7 @@ namespace Home.Controllers
userEntity.TaoBao= notifyOrder.BuyerNick;
await m_UserService.Update(userEntity);
}
msg = "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中,会员号为:"+userEntity.LoginCode+"打开网址juip.com登录后点击网站上方的-产品购买,即可完成开通或续费。淘宝付款将随机赠送优惠券,欢迎您多来淘宝下单";
msg = "您好,"+notifyOrder.Payment+"元已充值到充值到您的会员中,会员号为:"+userEntity.LoginCode+"打开网址juip.com登录后点击网站上方的-产品购买,即可完成开通或续费。恭喜您本次获得优惠券满4元减1元满20元减3元满54元减5元满130元减15元满490元减30元各一张。欢迎您多来淘宝下单";
}
@@ -638,7 +638,11 @@ namespace Home.Controllers
AttchInfo = notifyOrder.Tid
};
var retAmount = await m_UserService.UpdateAmount(amountInfo);
await m_CouponService.TaoBaoGive(userEntity.Id, 9, notifyOrder.BuyerNick);
await m_CouponService.TaoBaoGive(userEntity.Id, 11, notifyOrder.BuyerNick);
await m_CouponService.TaoBaoGive(userEntity.Id, 12, notifyOrder.BuyerNick);
await m_CouponService.TaoBaoGive(userEntity.Id, 13, notifyOrder.BuyerNick);
await m_CouponService.TaoBaoGive(userEntity.Id, 14, notifyOrder.BuyerNick);
await m_CouponService.TaoBaoGive(userEntity.Id, 15, notifyOrder.BuyerNick);
var taobaoEntity = notifyOrder.MapTo<TaoBaoOrderEntity>();