🐞 fix(gvg): 离开城池的时候未解锁
This commit is contained in:
@@ -88,9 +88,14 @@ export function getPeriodTime() {
|
||||
}
|
||||
|
||||
export async function getGVGConfigFromRemote() {
|
||||
let guildServers = pinus.app.getServersByType('guild');
|
||||
let server = getRandSingleEelm(guildServers);
|
||||
return await pinus.app.rpc.guild.guildRemote.getGVGConfig.toServer(server.id);
|
||||
let serverType = pinus.app.getServerType();
|
||||
if(serverType == 'guild') {
|
||||
return getGVGConfig();
|
||||
} else {
|
||||
let guildServers = pinus.app.getServersByType('guild');
|
||||
let server = getRandSingleEelm(guildServers);
|
||||
return await pinus.app.rpc.guild.guildRemote.getGVGConfig.toServer(server.id);
|
||||
}
|
||||
}
|
||||
|
||||
export async function setGVGConfig(config?: GVGConfigType) {
|
||||
|
||||
Reference in New Issue
Block a user