Bladeren bron

拼接 oss url

yumeng 6 jaren geleden
bovenliggende
commit
350b999393

+ 9 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/ActorController.java

@@ -1,5 +1,6 @@
 package org.jeecg.modules.ctop.controller;
 
+import cn.com.ctop.common.utils.Check;
 import cn.com.ctop.manage.modules.actor.entity.Actor;
 import cn.com.ctop.manage.modules.actor.entity.ActorComment;
 import cn.com.ctop.manage.modules.actor.entity.ActorPhoto;
@@ -11,6 +12,7 @@ import cn.com.ctop.manage.modules.actor.service.IActorVideoService;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import constant.KuaishouInterfaceConstant;
 import lombok.extern.slf4j.Slf4j;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.common.system.query.QueryGenerator;
@@ -245,6 +247,13 @@ public class ActorController {
 //                    actorVideoService.save(video);
 //                }
 //            }
+
+            String coverUrl = actor.getCoverUrl();
+            if (!Check.isNull(coverUrl)) {
+                if (!coverUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
+                    actor.setCoverUrl(KuaishouInterfaceConstant.HTTPS_PREFIX + coverUrl);
+                }
+            }
             result.success("添加成功!");
         } catch (Exception e) {
             log.error(e.getMessage(), e);

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouCampaignTemplateController.java

@@ -15,6 +15,7 @@ import org.jeecg.common.system.query.QueryGenerator;
 import org.jeecg.common.system.vo.LoginUser;
 import org.jeecg.common.util.oConvertUtils;
 import org.jeecg.modules.kuaishou.entity.KuaiShouCampaignTemplate;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouCampaignTemplateMapper;
 import org.jeecg.modules.kuaishou.service.IKuaiShouCampaignTemplateService;
 import org.jeecgframework.poi.excel.ExcelImportUtil;
 import org.jeecgframework.poi.excel.def.NormalExcelConstants;
@@ -50,6 +51,9 @@ public class KuaiShouCampaignTemplateController {
     @Autowired
     private IKuaiShouCampaignTemplateService kuaiShouCampaignTemplateService;
 
+    @Autowired
+    private KuaiShouCampaignTemplateMapper campaignTemplateMapper;
+
 
     @PostMapping("/insert")
     public Map<String, Object> campaignTemplateInsert(@RequestBody KuaiShouCampaignTemplate template, HttpServletRequest req) {
@@ -60,6 +64,21 @@ public class KuaiShouCampaignTemplateController {
     /**
      * 分页列表查询
      *
+     * @return
+     */
+    @AutoLog(value = "快手-创建广告计划模板-分页列表查询")
+    @ApiOperation(value = "快手-创建广告计划模板-分页列表查询", notes = "快手-创建广告计划模板-分页列表查询")
+    @GetMapping(value = "/getKuaiShouCampaignTemplate")
+    public KuaiShouCampaignTemplate getKuaiShouCampaignTemplate(Long id) {
+        return campaignTemplateMapper.selectById(id);
+
+
+    }
+
+
+    /**
+     * 分页列表查询
+     *
      * @param kuaiShouCampaignTemplate
      * @param pageNo
      * @param pageSize

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouImageServiceImpl.java

@@ -62,7 +62,7 @@ public class KuaiShouImageServiceImpl extends ServiceImpl<KuaiShouImageMapper, K
                 image.setPositionType(requestJson.getString("positionType"));
                 image.setAccountId(accountId);
                 String imageUrlStr;
-                if (!imageUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX + imageUrl)) {
+                if (!imageUrl.contains(KuaishouInterfaceConstant.HTTPS_PREFIX)) {
                     imageUrlStr = KuaishouInterfaceConstant.HTTPS_PREFIX + imageUrl;
                 } else {
                     imageUrlStr = imageUrl;