|
@@ -381,7 +381,7 @@ public class KuaiShouCreateServiceImpl implements IKuaiShouCreateService {
|
|
imageJson.put("positionType", requestJson.getString("positionType"));
|
|
imageJson.put("positionType", requestJson.getString("positionType"));
|
|
String imagePath = imageService.localInsert(imageJson);
|
|
String imagePath = imageService.localInsert(imageJson);
|
|
|
|
|
|
- Map<String, Object> imageMap = kuaishouInterfaceService.imageUpload(accountId, accessToken, imagePath, 0);
|
|
|
|
|
|
+ Map<String, Object> imageMap = kuaishouInterfaceService.imageUpload(accountId, accessToken, imagePath, 2);
|
|
if ((Integer) imageMap.get("code") != 0) {
|
|
if ((Integer) imageMap.get("code") != 0) {
|
|
return imageMap;
|
|
return imageMap;
|
|
}
|
|
}
|
|
@@ -479,7 +479,7 @@ public class KuaiShouCreateServiceImpl implements IKuaiShouCreateService {
|
|
imageJson.put("loginId", requestJson.getString("loginId"));
|
|
imageJson.put("loginId", requestJson.getString("loginId"));
|
|
imageJson.put("videoUploadType", requestJson.getString("singlePicTiepianType"));
|
|
imageJson.put("videoUploadType", requestJson.getString("singlePicTiepianType"));
|
|
String imagePath = imageService.localInsert(imageJson);
|
|
String imagePath = imageService.localInsert(imageJson);
|
|
- Map<String, Object> imageMap = kuaishouInterfaceService.imageUpload(accountId, accessToken, imagePath, 0);
|
|
|
|
|
|
+ Map<String, Object> imageMap = kuaishouInterfaceService.imageUpload(accountId, accessToken, imagePath, 3);
|
|
if ((Integer) imageMap.get("code") != 0) {
|
|
if ((Integer) imageMap.get("code") != 0) {
|
|
log.error("上传后贴片单张图片素材失败,accountId:{}", accountId);
|
|
log.error("上传后贴片单张图片素材失败,accountId:{}", accountId);
|
|
return imageMap;
|
|
return imageMap;
|