ソースを参照

修改问见格式

yumeng 5 年 前
コミット
237c6cced2

+ 2 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaiShouCreateServiceImpl.java

@@ -381,7 +381,7 @@ public class KuaiShouCreateServiceImpl implements IKuaiShouCreateService {
                     imageJson.put("positionType", requestJson.getString("positionType"));
                     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) {
                         return imageMap;
                     }
@@ -479,7 +479,7 @@ public class KuaiShouCreateServiceImpl implements IKuaiShouCreateService {
                         imageJson.put("loginId", requestJson.getString("loginId"));
                         imageJson.put("videoUploadType", requestJson.getString("singlePicTiepianType"));
                         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) {
                             log.error("上传后贴片单张图片素材失败,accountId:{}", accountId);
                             return imageMap;