2 Commits

Author SHA1 Message Date
26ad821bc0 feat: 添加 gitea 构建脚本
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m56s
2025-09-01 01:24:04 +08:00
9f0ebe81e3 fix: 修复接口响应 2025-09-01 01:23:43 +08:00

View File

@@ -304,11 +304,21 @@ func (u *userRouterImpl) QueryProfile(c *gin.Context) {
func (u *userRouterImpl) PlayerAttributes(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"privileges": gin.H{
"onlineChat": true,
"multiplayerServer": true,
"multiplayerRealms": false,
"telemetry": false,
"optionalTelemetry": false,
"onlineChat": gin.H{
"enabled": true,
},
"multiplayerServer": gin.H{
"enabled": true,
},
"multiplayerRealms": gin.H{
"enabled": false,
},
"telemetry": gin.H{
"enabled": false,
},
"optionalTelemetry": gin.H{
"enabled": false,
},
},
"profanityFilterPreferences": gin.H{
"profanityFilterOn": false,