支付回调

This commit is contained in:
luying
2021-11-09 19:24:00 +08:00
parent 173481a60c
commit 106493b878
26 changed files with 424 additions and 135 deletions
+3
View File
@@ -125,6 +125,7 @@ app.configure(ALL_ENVS, 'systimer', function () {
app.afterStart(async () => {
await redisService.initAllRank();
await timeTaskService.init();
redisService.redisSubScribe();
});
});
@@ -163,6 +164,8 @@ function initMongodb(app: _pinus.Application) {
function initRedis(app: _pinus.Application) {
const redisClient = connectRedis(app.get('database').redis, app.get('database').redispw);
app.set('redis', redisClient);
const redisClientPub = connectRedis(app.get('database').redis, app.get('database').redispw);
app.set('redisPub', redisClientPub); // 发布订阅机
redLockService.initRedlock(redisClient);
redlockCacheService.init();
}