创建公会
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user