项目仓库初始化
This commit is contained in:
10
get_current_user.js
Normal file
10
get_current_user.js
Normal file
@@ -0,0 +1,10 @@
|
||||
// @ts-ignore 获取账号信息
|
||||
export async function execute(http_message) {
|
||||
let username = HttpReQUtils.check_auth(http_message);
|
||||
if (username && username.length > 0) {
|
||||
return HttpResUtils.ok({
|
||||
username: username,
|
||||
});
|
||||
}
|
||||
return HttpResUtils.err_code(402);
|
||||
}
|
||||
Reference in New Issue
Block a user