Browse Source

实现登录(待测试登录是否成功)

master
前端-胡立永 1 week ago
parent
commit
5611d82d4a
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger3Config.java
  2. +1
    -1
      jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/AppletJwtFilter.java
  3. +1
    -1
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/controller/AppletLoginController.java
  4. +1
    -1
      jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/controller/AppletUserInfoController.java

+ 1
- 1
jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/Swagger3Config.java View File

@ -70,7 +70,7 @@ public class Swagger3Config implements WebMvcConfigurer {
openApi.getPaths().forEach((path, pathItem) -> { openApi.getPaths().forEach((path, pathItem) -> {
// 只保留以/applet开头的路径 // 只保留以/applet开头的路径
if (path.startsWith("/applet")) {
if (path.startsWith("/appletApi")) {
// 检查当前路径是否在排除列表中 // 检查当前路径是否在排除列表中
boolean isExcluded = excludedPaths.stream().anyMatch(excludedPath -> boolean isExcluded = excludedPaths.stream().anyMatch(excludedPath ->
excludedPath.equals(path) || excludedPath.equals(path) ||


+ 1
- 1
jeecg-boot/jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/AppletJwtFilter.java View File

@ -57,7 +57,7 @@ public class AppletJwtFilter extends BasicHttpAuthenticationFilter {
String requestPath = httpRequest.getServletPath(); String requestPath = httpRequest.getServletPath();
// 只处理以/applet开头的请求 // 只处理以/applet开头的请求
if (!requestPath.startsWith("/applet")) {
if (!requestPath.startsWith("/appletApi")) {
return true; // 不是applet请求直接放行 return true; // 不是applet请求直接放行
} }


+ 1
- 1
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/controller/AppletLoginController.java View File

@ -19,7 +19,7 @@ import java.util.Map;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/applet/login")
@RequestMapping("/appletApi/login")
@Tag(name = "小程序登录", description = "小程序登录相关接口") @Tag(name = "小程序登录", description = "小程序登录相关接口")
public class AppletLoginController { public class AppletLoginController {


+ 1
- 1
jeecg-boot/jeecg-boot-module/jeecgboot-boot-applet/src/main/java/org/jeecg/modules/applet/controller/AppletUserInfoController.java View File

@ -20,7 +20,7 @@ import java.util.Map;
*/ */
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/applet/userInfo")
@RequestMapping("/appletApi/userInfo")
@Tag(name = "小程序用户信息", description = "小程序用户信息管理相关接口") @Tag(name = "小程序用户信息", description = "小程序用户信息管理相关接口")
public class AppletUserInfoController { public class AppletUserInfoController {


Loading…
Cancel
Save