根据https://tshock.readme.io/reference/rest-api-endpoints#description 提供的方法
我在config.json添加一个非superadmin组的token
使用此token请求/v3/server/rawcmd执行任何命令都,接口都返回
{ "status": "403", "error": "Not authorized. User \"default\" has no access to use the specified API endpoint." }
请求:不同用户组的token请求/v3/server/rawcmd接口
可以像游戏里面执行命令一样,不同组可以执行不同命令,返回不同结果
根据https://tshock.readme.io/reference/rest-api-endpoints#description 提供的方法 我在config.json添加一个非superadmin组的token 使用此token请求/v3/server/rawcmd执行任何命令都,接口都返回
{ "status": "403", "error": "Not authorized. User \"default\" has no access to use the specified API endpoint." }
请求:不同用户组的token请求/v3/server/rawcmd接口 可以像游戏里面执行命令一样,不同组可以执行不同命令,返回不同结果