```
feat(config): 添加服务器screen参数字段 添加OldScreen字段用于存储服务器的screen会话名称 --- fix(fight): 修复攻击值结构体格式 格式化AttackValue结构体字段对齐,并添加Offensive字段用于存储攻击力 --- feat(fight): 计算并存储技能攻击力 在技能计算过程中添加攻击力计算并存储到AttackValue结构体中 --- fix(base): 修正JWT密钥配置 将JWT密钥从
This commit is contained in:
@@ -43,6 +43,9 @@ func BaseAuthorityMiddleware(r *ghttp.Request) {
|
||||
}
|
||||
|
||||
tokenString := r.GetHeader("Authorization")
|
||||
if tokenString == "" {
|
||||
tokenString = r.URL.Query().Get("Authorization")
|
||||
}
|
||||
token, err := jwt.ParseWithClaims(tokenString, &cool.Claims{}, func(token *jwt.Token) (interface{}, error) {
|
||||
|
||||
return []byte(config.Config.Jwt.Secret), nil
|
||||
|
||||
Reference in New Issue
Block a user