Commit 985bb501 by tang

轮播图修改

parent a69f9667
...@@ -20,6 +20,14 @@ public class AdvService { ...@@ -20,6 +20,14 @@ public class AdvService {
private AdvDao advDao; private AdvDao advDao;
public List<AdvEntity> getAdvList(AdvRequest request) throws Exception { public List<AdvEntity> getAdvList(AdvRequest request) throws Exception {
return advDao.getAdvList(request); List<AdvEntity> advList = advDao.getAdvList(request);
for (AdvEntity entity : advList){
String content = entity.getPicture();
if(content.contains("/youka-manage/")){
String replace = content.replace("/youka-manage/", "http://youkapay.com/youka-manage/");
entity.setPicture(replace);
}
}
return advList;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment