添加了权限与用户名查询
This commit is contained in:
@ -80,4 +80,16 @@ async function Request(req)
|
||||
localStorage.setItem("outhentication_key", outhentication_key);
|
||||
localStorage.setItem("operation_count", operation_count);
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
||||
async function GetMyName()
|
||||
{
|
||||
let ret = await RawRequest("#Who "+session_token+" InfoQuery "+outhentication_key);
|
||||
return ret.split('\n')[1].split(' ')[0];
|
||||
}
|
||||
|
||||
async function GetMyPrivilege()
|
||||
{
|
||||
let ret = await RawRequest("#Who "+session_token+" InfoQuery "+outhentication_key);
|
||||
return parseInt(ret.split('\n')[1].split(' ')[1]);
|
||||
}
|
Reference in New Issue
Block a user