fix:
推送礼包
This commit is contained in:
parent
14effac507
commit
159e5578d7
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -1 +1 @@
|
||||
export type MsgPushGiftChange = 1;
|
||||
export type MsgPushGiftChange = number;
|
||||
|
Loading…
Reference in New Issue
Block a user