推送礼包
This commit is contained in:
xcy 2023-12-22 16:00:23 +08:00
parent 14effac507
commit 159e5578d7
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ export class PushGiftFun {
return {payId: i, val: []}
}))
// 推送客户端消息
G.server.sendMsgByUid(uid, "msg_s2c/PushGiftChange", 1);
G.server.sendMsgByUid(uid, "msg_s2c/PushGiftChange", conf.id);
}
static async buy(uid: string, payId: string) {
@ -173,7 +173,7 @@ export class PushGiftFun {
uid: uid, id: gift.id.toString()
}, {$inc: {[`buy.${index}`]: 1}})
// 推送客户端消息
G.server.sendMsgByUid(uid, "msg_s2c/PushGiftChange", 1);
G.server.sendMsgByUid(uid, "msg_s2c/PushGiftChange", gift.id);
}
}
}

View File

@ -1 +1 @@
export type MsgPushGiftChange = 1;
export type MsgPushGiftChange = number;