后台:修复部分遗漏
This commit is contained in:
@@ -112,6 +112,10 @@ export class GmHandler {
|
||||
for(let { id } of systimerServers) {
|
||||
await this.app.rpc.systimer.systimerRemote.reloadResources.toServer(id);
|
||||
}
|
||||
let orderServers = this.app.getServersByType('order');
|
||||
for(let { id } of orderServers) {
|
||||
await this.app.rpc.order.orderRemote.reloadResources.toServer(id);
|
||||
}
|
||||
return resResult(STATUS.SUCCESS, {
|
||||
isOK: true
|
||||
});
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
import { Application, ChannelService } from 'pinus';
|
||||
import { reloadResources } from '../../../pubUtils/data';
|
||||
|
||||
export default function (app: Application) {
|
||||
return new OrderRemote(app);
|
||||
}
|
||||
|
||||
export class OrderRemote {
|
||||
|
||||
constructor(private app: Application) {
|
||||
this.app = app;
|
||||
this.channelService = app.get('channelService');
|
||||
}
|
||||
|
||||
private channelService: ChannelService;
|
||||
|
||||
/**
|
||||
* 重载json资源
|
||||
*/
|
||||
public async reloadResources() {
|
||||
reloadResources();
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ import { RoleRemote } from './role/remote/roleRemote';
|
||||
import { GuildActivityRemote } from './guild/remote/guildActivityRemote';
|
||||
import { GuildRemote as GuildRemote2 } from './guild/remote/guildRemote';
|
||||
import { ActivityRemote } from './activity/remote/activityRemote';
|
||||
import { OrderRemote } from './order/remote/orderRemote';
|
||||
declare global {
|
||||
interface UserRpc {
|
||||
activity: {
|
||||
@@ -42,6 +43,9 @@ declare global {
|
||||
},
|
||||
role: {
|
||||
roleRemote: RemoterClass<FrontendSession, RoleRemote>;
|
||||
},
|
||||
order: {
|
||||
orderRemote: RemoterClass<FrontendSession, OrderRemote>;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user