|
@@ -27,7 +27,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
@Slf4j
|
|
|
@Service
|
|
|
public class UploadServiceImpl implements UploadService {
|
|
|
- @Value("${imageUrl.klm}")
|
|
|
+ @Value("${imageUrl.prefix}")
|
|
|
private String imagerUrl;
|
|
|
|
|
|
@Override
|
|
@@ -48,6 +48,7 @@ public class UploadServiceImpl implements UploadService {
|
|
|
.addFormDataPart("file", file.getOriginalFilename(),
|
|
|
RequestBody.create(MediaType.parse("multipart/form-data;charset=utf-8"),
|
|
|
file.getBytes()))
|
|
|
+ .addFormDataPart("scene", "M00")
|
|
|
.addFormDataPart("output", "json")
|
|
|
.build();
|
|
|
|