Former-commit-id: d0beaab138de1e81a5abfea19e9e746316cfd837
master
王兵 5 years ago
parent af4a68d843
commit 6f36aeb821

@ -41,6 +41,8 @@ public class Token implements Serializable {
private Set<String> resSet = new HashSet<>(); private Set<String> resSet = new HashSet<>();
public boolean hasRes(String res) { public boolean hasRes(String res) {
{// todo 开发初期收集资源,后期删除
String[] profiles = LocalData.getEnvironment().getActiveProfiles(); String[] profiles = LocalData.getEnvironment().getActiveProfiles();
for (String profile : profiles) { for (String profile : profiles) {
if (profile.contains("dev")) {//测试环境捕获资源 if (profile.contains("dev")) {//测试环境捕获资源
@ -61,6 +63,7 @@ public class Token implements Serializable {
} }
} }
} }
}
for (String s : resSet) { for (String s : resSet) {
if (res.matches(s)) { if (res.matches(s)) {

Loading…
Cancel
Save

Powered by TurnKey Linux.