活动:支付添加推送

This commit is contained in:
qiaoxin
2021-05-27 14:08:54 +08:00
parent c261fdc045
commit 9b80dae800
13 changed files with 206 additions and 116 deletions

View File

@@ -175,8 +175,13 @@ export class orderHandler {
//订单成功
orderInfo = await UserOrderModel.success(roleId, localOrderID);
if (orderInfo) {
//结算奖励
let result = await makeOrder(localOrderID, sid, orderInfo);
//推送
this.app.channelService.pushMessageByUids('onOrder', resResult(STATUS.SUCCESS, {
data: result,
}), [{ uid: roleId, sid: sid }]);
//活动统计
await addRechargeMoney(roleId, serverId, price);
console.log('结算完成', localOrderID)
@@ -238,6 +243,10 @@ export class orderHandler {
if (orderInfo) {
//结算奖励
let result = await makeOrder(localOrderID, sid, orderInfo);
//推送
this.app.channelService.pushMessageByUids('onOrder', resResult(STATUS.SUCCESS, {
data: result,
}), [{ uid: roleId, sid: sid }]);
//活动统计
await addRechargeMoney(roleId, serverId, price);
console.log(`测试支付完成!!!!!!!!!!!!! serverId:${serverId}, productID:${productID}, roleId:${roleId}, localOrderID:${localOrderID}`)