Commit 1edf6ded by zhiwj

bug

parent 88e89355
......@@ -584,7 +584,7 @@ public class StoreApiServiceImpl implements StoreApiService {
ServiceResponse<Page<StoreDTO>> storePage = this.listStore(storeSearchDTO, nearByStoreSearchDTO.getPageNum(), nearByStoreSearchDTO.getPageSize());
List<StoreDTO> list = storePage.getResult().getResult();
StorePhotoDTO storePhotoDTO = new StorePhotoDTO();
storePhotoDTO.setImageUrl("https://pic01-10001430.image.myqcloud.com/a5a82c47-5892-4c1c-afaf-0f8d4d41e032");
storePhotoDTO.setImageUrl(Constants.DEFAULT_PHOTO);
List<StorePhotoDTO> defaultList = Collections.singletonList(storePhotoDTO);
if (CollectionUtils.isNotEmpty(list)) {
for (StoreDTO storeDTO : list) {
......@@ -820,6 +820,9 @@ public class StoreApiServiceImpl implements StoreApiService {
// todo 修改门店缓存时间
RedisUtil.setCache(key, storeDTO, storeExpiredTime, TimeUnit.HOURS);
}
StorePhotoDTO storePhotoDTO = new StorePhotoDTO();
storePhotoDTO.setImageUrl(Constants.DEFAULT_PHOTO);
storeDTO.setDefaultPhoto(storePhotoDTO);
return ServiceResponse.success(storeDTO);
}
......
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