swagger 推广后台 优化对战百佳历史接口
This commit is contained in:
@@ -192,13 +192,6 @@
|
||||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Swagger3依赖 -->
|
||||
<dependency>
|
||||
<groupId>io.springfox</groupId>
|
||||
<artifactId>springfox-boot-starter</artifactId>
|
||||
<version>${swagger.version}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -22,6 +22,15 @@ public class LoginUser implements UserDetails
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 登录端:游戏管理后台(sys_user 账号) */
|
||||
public static final String SCOPE_ADMIN = "admin";
|
||||
|
||||
/** 登录端:推广后台(promo_admin 超管 / 主播 01 / 招商 04 / 卡商 05) */
|
||||
public static final String SCOPE_PROMO = "promo";
|
||||
|
||||
/** 登录端:玩家端(H5 / App,api_ 前缀登录) */
|
||||
public static final String SCOPE_PLAYER = "player";
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
@@ -79,6 +88,13 @@ public class LoginUser implements UserDetails
|
||||
|
||||
private UserData userData;
|
||||
|
||||
/**
|
||||
* 登录端标记(admin / promo / player):同一个 tt_user 既能登录玩家端也能登录推广后台,
|
||||
* 两端签发的 token 必须互不通用,鉴权时按这个标记区分(见 SecurityConfig 的三条规则)。
|
||||
* 签发时在 ApiUserDetailsServiceImpl 按账号前缀写入,随会话缓存在 Redis 里。
|
||||
*/
|
||||
private String loginScope;
|
||||
|
||||
public LoginUser(Long userId, UserData userData) {
|
||||
this.userId = userId;
|
||||
this.userData = userData;
|
||||
|
||||
@@ -30,7 +30,9 @@ public class MimeTypeUtils
|
||||
// 图片
|
||||
"bmp", "gif", "jpg", "jpeg", "png",
|
||||
// word excel powerpoint
|
||||
"doc", "docx", "xls", "xlsx", "ppt", "pptx", "html", "htm", "txt",
|
||||
// 2026-09-23 去掉 html/htm:上传目录 /profile/** 是匿名可访问的静态目录,
|
||||
// 放行 html/htm 等于允许任意登录用户往自己域名下丢页面(.html 被当静态资源打开就是 XSS/钓鱼面)
|
||||
"doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt",
|
||||
// 压缩文件
|
||||
"rar", "zip", "gz", "bz2",
|
||||
// 视频格式
|
||||
|
||||
Reference in New Issue
Block a user