创建公会

This commit is contained in:
luying
2021-01-18 21:05:25 +08:00
parent 97216647b2
commit 3c35852495
17 changed files with 281 additions and 37 deletions
+12
View File
@@ -0,0 +1,12 @@
import { gameData } from "../pubUtils/data";
/**
* @description 检查该玩家是否有权限做操作
* @param func 操作id
* @param auth 权限
*/
export function checkAuth(func: number, auth: number) {
const dicGuildAuth = gameData.guildAuth.get(func);
if(!dicGuildAuth) return false;
return dicGuildAuth.includes(auth);
}