后台:道具获取
This commit is contained in:
@@ -14,7 +14,6 @@ export class ActivityRemote {
|
||||
constructor(private app: Application) {
|
||||
this.app = app;
|
||||
this.channelService = app.get('channelService');
|
||||
this.loadActivities();
|
||||
}
|
||||
|
||||
private channelService: ChannelService;
|
||||
@@ -30,7 +29,7 @@ export class ActivityRemote {
|
||||
reloadResources();
|
||||
}
|
||||
|
||||
private async loadActivities() {
|
||||
public async loadActivities() {
|
||||
let servers = await ServerlistModel.getAllServerList();
|
||||
for(let { serverId, activityGroupId } of servers) {
|
||||
for(let groupId of activityGroupId) {
|
||||
@@ -52,6 +51,7 @@ export class ActivityRemote {
|
||||
this.app.set('activityByServer', this.activityByServer);
|
||||
this.app.set('activityByType', this.activityByType);
|
||||
this.app.set('activities', this.activities);
|
||||
console.log('****** loadActivities')
|
||||
}
|
||||
|
||||
private setActivityTypeAndServer() {
|
||||
|
||||
Reference in New Issue
Block a user