添加机构分享前缀
This commit is contained in:
parent
e589aa69cf
commit
2c989af0a6
|
|
@ -83,6 +83,7 @@ public class ShiroConfig {
|
|||
}
|
||||
|
||||
// 配置不会被拦截的链接 顺序判断
|
||||
filterChainDefinitionMap.put("/sys/sysDepart/getShareUrlByCode", "anon"); //获取机构分享的前缀
|
||||
filterChainDefinitionMap.put("/iot/tq/api/electricityMeter/**", "anon"); //电表回调
|
||||
filterChainDefinitionMap.put("/iot/tq/api/waterMeter/**", "anon"); //水表回调
|
||||
filterChainDefinitionMap.put("/sys/cas/client/validateLogin", "anon"); //cas验证登录
|
||||
|
|
|
|||
|
|
@ -727,6 +727,17 @@ public class SysDepartController {
|
|||
return result;
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/getShareUrlByCode")
|
||||
public Map<String, String> getShareUrlByCode(@RequestParam("orgCode") String orgCode) {
|
||||
QueryWrapper<SysDepart> query = new QueryWrapper<>();
|
||||
query.eq("org_code", orgCode);
|
||||
SysDepart sysDepart = sysDepartService.getOne(query);
|
||||
Map<String,String> map = new HashMap<>();
|
||||
map.put("shareUrl", sysDepart.getShareUrl());
|
||||
return map;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询所有子区域信息
|
||||
*
|
||||
|
|
|
|||
|
|
@ -220,6 +220,11 @@ public class SysDepart implements Serializable {
|
|||
* 各机构服务器后台接口地址
|
||||
*/
|
||||
private String serverUrl;
|
||||
|
||||
/**
|
||||
* 分享地址前缀
|
||||
*/
|
||||
private String shareUrl;
|
||||
/**
|
||||
* 机构图片
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue