Skip to content

Commit

Permalink
Update ImageSourceManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
cikiPAD authored Dec 20, 2023
1 parent b97263f commit 54ad05d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/main/java/ImageSourceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,13 @@ public List<String> getImageUrls(String type, Map<String, Object> params) {



public List<String> getImageUrlsNormal(Map<String, Object> params) {
public List<String> getImageUrlsNormal(Map<String, Object> params, boolean needAddParm) {
try {

if (!additionParamNormal.isEmpty()) {
for (String paramKey:additionParamNormal.keySet()) {
params.put(paramKey, additionParamNormal.get(paramKey));
if (needAddParm) {
if (!additionParamNormal.isEmpty()) {
for (String paramKey : additionParamNormal.keySet()) {
params.put(paramKey, additionParamNormal.get(paramKey));
}
}
}

Expand All @@ -101,12 +102,14 @@ public List<String> getImageUrlsNormal(Map<String, Object> params) {
}


public List<String> getImageUrlsSp(Map<String, Object> params) {
public List<String> getImageUrlsSp(Map<String, Object> params, boolean needAddParm) {
try {

if (!additionParamSp.isEmpty()) {
for (String paramKey:additionParamSp.keySet()) {
params.put(paramKey, additionParamSp.get(paramKey));
if (needAddParm) {
if (!additionParamSp.isEmpty()) {
for (String paramKey : additionParamSp.keySet()) {
params.put(paramKey, additionParamSp.get(paramKey));
}
}
}

Expand Down

0 comments on commit 54ad05d

Please sign in to comment.