Compare commits

..

2 Commits

Author SHA1 Message Date
bayuzhen 0dce3033de 添加ukey用户登录接口白名单 2024-08-26 14:58:40 +08:00
bayuzhen d26b58fd10 添加配置文件默认值 2024-08-26 10:35:32 +08:00
3 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@ public class WhiteApiCache implements InitializingBean {
taskExecutor.execute(() -> { taskExecutor.execute(() -> {
//设置白名单 //设置白名单
List<String> whiteList = Lists.newArrayList("^GET:/v1/users/permissions$", List<String> whiteList = Lists.newArrayList("^GET:/v1/users/permissions$",
"^GET:/v1/login/detail$", "^GET:/v1/messages$", "^GET:/v1/token$","^POST:/v1/token/check$", "^GET:/v1/login/detail$", "^GET:/v1/trx/randomstr$", "^POST:/v1/trx/login$", "^POST:/v1/trx/logout$", "^GET:/v1/messages$", "^GET:/v1/token$","^POST:/v1/token/check$",
"^POST:/v1/users/logout$", "^POST:/v1/tenants/logout$", "^GET:/v1/config/license$", "^GET:/v1/roles/ids$"); "^POST:/v1/users/logout$", "^POST:/v1/tenants/logout$", "^GET:/v1/config/license$", "^GET:/v1/roles/ids$");
redisTemplate.opsForValue().set("permission_white", JSONObject.toJSONString(whiteList)); redisTemplate.opsForValue().set("permission_white", JSONObject.toJSONString(whiteList));
}); });

View File

@ -11,9 +11,9 @@ import org.springframework.stereotype.Component;
@Component @Component
public class QxUtils { public class QxUtils {
private final Logger logger = LoggerFactory.getLogger(this.getClass()); private final Logger logger = LoggerFactory.getLogger(this.getClass());
@Value("${qx.queryAppUrl}") @Value("${qx.queryAppUrl:http://117.47.88.120:8081/authority/api/v1/apps}")
private String queryAppUrl; private String queryAppUrl;
@Value("${qx.queryAppModulesUrl}") @Value("${qx.queryAppModulesUrl:http://117.47.88.120:8081/authority/api/v1/appModules}")
private String queryAppModulesUrl; private String queryAppModulesUrl;
public String queryApp(String userToken, String userId){ public String queryApp(String userToken, String userId){

View File

@ -13,13 +13,13 @@ import org.springframework.stereotype.Component;
public class YkUtils { public class YkUtils {
private final Logger logger = LoggerFactory.getLogger(this.getClass()); private final Logger logger = LoggerFactory.getLogger(this.getClass());
//参考application.yml配置文件 //参考application.yml配置文件
@Value("${yk.url}") @Value("${yk.url:http://36.111.150.83:9527/}")
private String url; private String url;
@Value("${yk.reqUserId}") @Value("${yk.reqUserId:1}")
private String reqUserId; private String reqUserId;
@Value("${yk.systemId}") @Value("${yk.systemId:1}")
private String systemId; private String systemId;