支付回调
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user