fix: 规范无量云api接口调用类

feat/addPrevailCloudLog
shuliYao 1 year ago
parent b5939d86ce
commit 8cdf0a3d0f

@ -43,7 +43,7 @@ import java.util.Map;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/test/api") @RequestMapping("/test/api")
public class ApiTestController { public class PrevailCloudApiController {
@Resource @Resource
private ApiConfig apiConfig; private ApiConfig apiConfig;
@ -133,7 +133,7 @@ public class ApiTestController {
if (pictureSourceResult.getLivePhoto() == null) { if (pictureSourceResult.getLivePhoto() == null) {
List<Map<String, Object>> livePhoto = new ArrayList<>(); List<Map<String, Object>> livePhoto = new ArrayList<>();
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("imgUrl", "http://47.93.59.251/api/image/default.png"); map.put("imgUrl", StringUtils.isEmpty(apiConfig.getDefaultPictureImg()) ? "http://47.93.59.251/api/image/default.png" : apiConfig.getDefaultPictureImg());
map.put("imgName", "default.png"); map.put("imgName", "default.png");
livePhoto.add(map); livePhoto.add(map);
pictureSourceResult.setLivePhoto(livePhoto); pictureSourceResult.setLivePhoto(livePhoto);
Loading…
Cancel
Save