跳到主要内容

auth

执行认证

合法的认证令牌列表在全局配置的tokens字段中配置

声明

bool auth(string token)

参数

参数名描述
token用于认证的令牌

返回值

true - 认证成功, false - 认证失败

使用方式

返回文档