🐛 区划懒加载接口放开鉴权
小程序司机认证表单的住址选择(省/市/区三级)调用 lazy-tree, 小程序用户不绑定系统角色,类上的 menu=region 校验直接 401, 前端收到 401 即清登录态把用户踢回登录页。 方法级 PERMIT_ALL 覆盖类的 menu 校验,其余区划接口维持原状。
This commit is contained in:
+4
@@ -43,6 +43,7 @@ import org.springblade.core.excel.util.ExcelUtil;
|
||||
import org.springblade.core.mp.support.Condition;
|
||||
import org.springblade.core.mp.support.Query;
|
||||
import org.springblade.core.secure.annotation.PreAuth;
|
||||
import org.springblade.core.secure.constant.AuthConstant;
|
||||
import org.springblade.core.tenant.annotation.NonDS;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springblade.core.tool.utils.DateUtil;
|
||||
@@ -117,6 +118,9 @@ public class RegionController extends BladeController {
|
||||
/**
|
||||
* 懒加载列表
|
||||
*/
|
||||
// 引用数据下拉:小程序司机认证表单的住址选择也调用本接口。小程序用户不绑定系统角色,
|
||||
// 落到类上的 menu=region 校验会抛 401,前端随即清登录态把用户踢回登录页。
|
||||
@PreAuth(AuthConstant.PERMIT_ALL)
|
||||
@GetMapping("/lazy-tree")
|
||||
@Parameters({
|
||||
@Parameter(name = "code", description = "区划编号", in = ParameterIn.QUERY, schema = @Schema(type = "string")),
|
||||
|
||||
Reference in New Issue
Block a user