sdk:修复支付回调bug

This commit is contained in:
luying
2021-11-16 16:46:39 +08:00
parent 2f295417b3
commit d7d1afbb2f
6 changed files with 29 additions and 7 deletions

View File

@@ -489,6 +489,9 @@ export async function redisSubScribe() {
let treatGuildChannel = getRedisSubChannel(REDIS_KEY.TREAT_GUILD_CHANNEL, env);
await redisClientPub().subscribeAsync(payChannel, treatRoleChannel, treatGuildChannel);
redisClientPub().on('message', (channel, message) => {
console.log('**********redisSubScribe*******')
console.log('channel: ', channel, payChannel);
if(channel == payChannel) {
let servers = pinus.app.getServersByType('order');
let server = getRandSingleEelm(servers);