yumeng 5 năm trước cách đây
mục cha
commit
b6e62f0db6

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouHourlyAccountWarningLoadJob.java

@@ -46,7 +46,7 @@ public class KuaishouHourlyAccountWarningLoadJob implements Job {
                     for (CtopOauthToken token : tokens) {
                         accountWarningService.accountWarning(token.getAccountId(), statDate, anotherDay);
                     }
-                    log.info("开始时段消耗预警定时任务执行完毕,耗时:{} ms", System.currentTimeMillis() - l);
+                    log.info("时段消耗预警定时任务执行完毕,耗时:{} ms", System.currentTimeMillis() - l);
 
                 } catch (Exception e) {
                     e.printStackTrace();

+ 14 - 2
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -1,10 +1,15 @@
 package org.jeecg;
 
+import cn.com.ctop.common.module.entity.CtopOauthToken;
+import cn.com.ctop.common.module.entity.UserAllocation;
+import cn.com.ctop.common.module.mapper.CtopOauthTokenMapper;
+import cn.com.ctop.common.module.mapper.UserAllocationMapper;
 import cn.com.ctop.common.module.utils.HttpUtils2;
 import cn.com.ctop.crawler.modules.appium.service.IAppiumJobService;
 import cn.com.ctop.crawler.modules.appium.service.IAppiumTaskService;
 import cn.com.ctop.kuaishou.modules.batch.service.IAccountWarningService;
 import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouInterfaceService;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.http.impl.client.BasicCookieStore;
 import org.jeecg.modules.ctop.service.IBidWarningService;
@@ -150,11 +155,18 @@ public class SampleTest {
 
     @Autowired
     private IAccountWarningService accountWarningService;
+    @Autowired
+    private CtopOauthTokenMapper oauthTokenMapper;
 
     @Test
     public void testMa() throws Exception {
-       // accountWarningService.accountWarning(23212L);
-
+        // accountWarningService.accountWarning(23212L);
+        QueryWrapper<CtopOauthToken> oauthTokenQueryWrapper = new QueryWrapper<>();
+        oauthTokenQueryWrapper.eq("account_id", 23212L);
+        CtopOauthToken token = oauthTokenMapper.selectOne(oauthTokenQueryWrapper);
+        kuaishouInterfaceService.getVideoList(token, null, null);
+        //3: 获取图片信息数据
+        kuaishouInterfaceService.getImageList(token, null, null);
     }
 
 

+ 56 - 0
module-common/src/main/java/cn/com/ctop/common/module/enums/MaterialEnum.java

@@ -0,0 +1,56 @@
+package cn.com.ctop.common.module.enums;
+
+public enum MaterialEnum {
+
+
+    VerticalVideoSmall(1, 720, 1280),
+    VerticalVideoBig(1, 1080, 1920),
+    HorizontalVideoSmall(2, 1280, 720),
+    HorizontalVideoBig(2, 1920, 1080);
+
+    private Integer type;
+    private Integer width;
+    private Integer height;
+
+
+    private MaterialEnum(Integer type, Integer width, Integer height) {
+        this.type = type;
+        this.width = width;
+        this.width = width;
+        this.height = height;
+    }
+
+    public static Integer getTypeBySize(Integer width, Integer height) {
+        for (MaterialEnum material : MaterialEnum.values()) {
+            if (width.equals(material.width) && height.equals(material.height)) {
+                return material.type;
+            }
+        }
+
+        return 0;
+    }
+
+    public Integer getType() {
+        return type;
+    }
+
+    public void setType(Integer type) {
+        this.type = type;
+    }
+
+    public Integer getWidth() {
+        return width;
+    }
+
+    public void setWidth(Integer width) {
+        this.width = width;
+    }
+
+    public Integer getHeight() {
+        return height;
+    }
+
+    public void setHeight(Integer height) {
+        this.height = height;
+    }
+}

+ 138 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/controller/BatchController.java

@@ -2,10 +2,13 @@ package cn.com.ctop.kuaishou.modules.batch.controller;
 
 
 import cn.com.ctop.common.module.entity.CtopOauthToken;
+import cn.com.ctop.common.module.entity.MaterialInfo;
+import cn.com.ctop.common.module.mapper.MaterialInfoMapper;
 import cn.com.ctop.common.module.service.ICtopOauthTokenService;
 import cn.com.ctop.common.module.utils.Check;
 import cn.com.ctop.kuaishou.modules.batch.entity.*;
 import cn.com.ctop.kuaishou.modules.batch.entity.vo.SpendVo;
+import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouCampaignMapper;
 import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouRegionListParentMapper;
 import cn.com.ctop.kuaishou.modules.batch.mapper.KuaiShouTargetingTagsMapper;
 import cn.com.ctop.kuaishou.modules.batch.service.*;
@@ -44,7 +47,6 @@ public class BatchController {
     private IKuaiShouUpdateService updateService;
     @Autowired
     private ICtopOauthTokenService tokenService;
-
     @Autowired
     private IKuaiShouGroupService kuaiShouGroupService;
     @Autowired
@@ -53,6 +55,16 @@ public class BatchController {
     private IKuaiShouAppListService kuaiShouAppListService;
     @Autowired
     private KuaiShouTargetingTagsMapper targetingTagsMapper;
+    @Autowired
+    private IKuaiShouImageGetService kuaiShouImageGetService;
+    @Autowired
+    private IKuaiShouVideoGetService kuaiShouVideoGetService;
+    @Autowired
+    private MaterialInfoMapper materialInfoMapper;
+    @Autowired
+    private KuaiShouCampaignMapper campaignMapper;
+    @Autowired
+    private IKuaiShouActionBarTextService actionBarTextService;
 
 
     /**
@@ -783,4 +795,129 @@ public class BatchController {
     }
 
 
+    /**
+     * 获取封面列表
+     *
+     * @param kuaiShouImageGet
+     * @param req
+     * @return
+     */
+    @GetMapping(value = "/getImageList")
+    public Result<IPage<KuaiShouImageGet>> getImageList(KuaiShouImageGet kuaiShouImageGet, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+                                                        @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
+        Result<IPage<KuaiShouImageGet>> result = new Result<>();
+        try {
+            QueryWrapper<KuaiShouImageGet> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouImageGet, req.getParameterMap());
+            Page<KuaiShouImageGet> page = new Page<>(pageNo, pageSize);
+            IPage<KuaiShouImageGet> pageList = kuaiShouImageGetService.page(page, queryWrapper);
+            result.setSuccess(true);
+            result.setResult(pageList);
+        } catch (Exception e) {
+            e.printStackTrace();
+            result.setSuccess(false);
+
+        }
+
+        return result;
+    }
+
+    /**
+     * 获取视频列表
+     *
+     * @param kuaiShouVideoGet
+     * @param req
+     * @return
+     */
+    @GetMapping(value = "/getVideoList")
+    public Result<IPage<KuaiShouVideoGet>> getVideoList(KuaiShouVideoGet kuaiShouVideoGet, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
+                                                        @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
+        Result<IPage<KuaiShouVideoGet>> result = new Result<IPage<KuaiShouVideoGet>>();
+        try {
+
+            QueryWrapper<KuaiShouVideoGet> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouVideoGet, req.getParameterMap());
+            Page<KuaiShouVideoGet> page = new Page<KuaiShouVideoGet>(pageNo, pageSize);
+            IPage<KuaiShouVideoGet> pageList = kuaiShouVideoGetService.page(page, queryWrapper);
+            result.setSuccess(true);
+            result.setResult(pageList);
+            return result;
+        } catch (Exception e) {
+            e.printStackTrace();
+            result.setSuccess(false);
+        }
+
+        return result;
+    }
+
+
+    /**
+     * 获取素材信息
+     *
+     * @param code
+     * @return
+     */
+    @GetMapping(value = "/getCreativeCopywriter")
+    public Result<MaterialInfo> getVideoList(String code) {
+        Result<MaterialInfo> result = new Result<>();
+        try {
+
+            QueryWrapper<MaterialInfo> materialInfoQueryWrapper = new QueryWrapper<>();
+            materialInfoQueryWrapper.eq("code", code);
+            materialInfoQueryWrapper.last("limit 1");
+            MaterialInfo materialInfo = materialInfoMapper.selectOne(materialInfoQueryWrapper);
+            result.setSuccess(true);
+            result.setResult(materialInfo);
+
+        } catch (Exception e) {
+            e.printStackTrace();
+            result.setSuccess(false);
+        }
+
+        return result;
+    }
+
+
+    /**
+     * 获取行动号召按钮
+     *
+     * @param campaignId
+     * @return
+     */
+    @GetMapping(value = "/getActionBarText")
+    public Result<List<KuaiShouActionBarText>> queryPageList(String campaignId) {
+        Result<List<KuaiShouActionBarText>> result = new Result<>();
+        QueryWrapper<KuaiShouCampaign> wrapper = new QueryWrapper<>();
+        wrapper.eq("campaign_id", campaignId);
+        wrapper.orderByDesc("create_time");
+        wrapper.last("limit 1");
+        KuaiShouCampaign campaign = campaignMapper.selectOne(wrapper);
+        if (!Check.isNull(campaignId)) {
+            QueryWrapper<KuaiShouActionBarText> queryWrapper = new QueryWrapper<>();
+            queryWrapper.eq("type", campaign.getCampaignType());
+            List<KuaiShouActionBarText> list = actionBarTextService.list(queryWrapper);
+            result.setSuccess(true);
+            result.setResult(list);
+        } else {
+            result.setSuccess(false);
+            result.setMessage("未获取到广告计划信息");
+        }
+
+        return result;
+    }
+
+
+    @PostMapping(value = "/createCreative")
+    public Result<JSONObject> createCreative(@RequestBody JSONObject requestJson) {
+        Result<JSONObject> result = new Result<>();
+
+
+        try {
+            JSONObject creativeJson = batchService.createCreative(requestJson);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+
+        return result;
+    }
+
 }

+ 6 - 6
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/KuaiShouImageGet.java

@@ -1,6 +1,5 @@
 package cn.com.ctop.kuaishou.modules.batch.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 import com.fasterxml.jackson.annotation.JsonFormat;
@@ -30,9 +29,9 @@ public class KuaiShouImageGet {
     /**
      * id
      */
-    @TableId(type = IdType.AUTO)
+    @TableId
     @ApiModelProperty(value = "id")
-    private Long id;
+    private String id;
     /**
      * 账户ID
      */
@@ -50,13 +49,13 @@ public class KuaiShouImageGet {
      */
     @Excel(name = "宽", width = 15)
     @ApiModelProperty(value = "宽")
-    private Long width;
+    private Integer width;
     /**
      * 高
      */
     @Excel(name = "高", width = 15)
     @ApiModelProperty(value = "高")
-    private Long height;
+    private Integer height;
     /**
      * 图片大小
      */
@@ -69,13 +68,14 @@ public class KuaiShouImageGet {
     @Excel(name = "图片格式", width = 15)
     @ApiModelProperty(value = "图片格式")
     private String format;
+    private Integer materialType;
 
     /**
      * 图片 token
      */
     @Excel(name = "图片 token", width = 15)
     @ApiModelProperty(value = "图片 token")
-    private Object imageToken;
+    private String imageToken;
     /**
      * 图片 md5
      */

+ 3 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/entity/KuaiShouVideoGet.java

@@ -74,6 +74,9 @@ public class KuaiShouVideoGet {
     @Excel(name = "视频MD5值", width = 15)
     @ApiModelProperty(value = "视频MD5值")
     private String signature;
+
+
+    private Integer materialType;
     /**
      * 创建时间
      */

+ 4 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouImageGetMapper.xml

@@ -4,12 +4,14 @@
 
     <insert id="replaceBatch">
         replace into ctop_kuaishou_image_get(
+        id,
         account_id,
         url,
         width,
         height,
         size,
         format,
+        material_type,
         signature,
         image_token,
         create_time,
@@ -18,12 +20,14 @@
         values
         <foreach collection="images" item="image" separator=",">
             (
+            #{image.id},
             #{image.accountId},
             #{image.url},
             #{image.width},
             #{image.height},
             #{image.size},
             #{image.format},
+            #{image.materialType},
             #{image.signature},
             #{image.imageToken},
             #{image.createTime},

+ 2 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/mapper/xml/KuaiShouVideoGetMapper.xml

@@ -10,6 +10,7 @@
         height,
         url,
         cover_url,
+        material_type,
         create_time,
         update_time,
         signature)
@@ -22,6 +23,7 @@
             #{video.height},
             #{video.url},
             #{video.coverUrl},
+            #{video.materialType},
             #{video.createTime},
             #{video.updateTime},
             #{video.signature})

+ 8 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/IBatchService.java

@@ -67,4 +67,12 @@ public interface IBatchService {
      * @return
      */
     KuaiShouGroup getUnitInfo(Long accountId, Long unitId);
+
+    /**
+     * 创建创意
+     *
+     * @param requestJson
+     * @return
+     */
+    JSONObject createCreative(JSONObject requestJson) throws Exception;
 }

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

@@ -1,8 +1,6 @@
 package cn.com.ctop.kuaishou.modules.batch.service;
 
-import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouImage;
 import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouImageGet;
-import cn.com.ctop.kuaishou.modules.batch.entity.KuaiShouVideoGet;
 import com.baomidou.mybatisplus.extension.service.IService;
 
 import java.util.List;

+ 69 - 0
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/BatchServiceImpl.java

@@ -401,6 +401,75 @@ public class BatchServiceImpl implements IBatchService {
     }
 
 
+    /**
+     * 创建创意
+     *
+     * @param requestJson
+     * @return
+     */
+    @Override
+    public JSONObject createCreative(JSONObject requestJson) throws Exception {
+
+        if (Check.isNull(requestJson)) {
+            throw new Exception("入参为空");
+        }
+
+
+        Long accountId = requestJson.getLong("accountId");
+        if (Check.isNull(accountId)) {
+            throw new Exception("请输入需创建账号");
+        }
+
+        Long unitId = requestJson.getLong("unitId");
+        if (Check.isNull(unitId)) {
+            throw new Exception("请选择广告组");
+        }
+
+
+        JSONObject creativeJson = new JSONObject();
+
+
+        creativeJson.put("advertiser_id", accountId);
+
+        creativeJson.put("unit_id", unitId);
+
+
+        // 视频id
+        if (!Check.isNull(requestJson.get("photo_id"))) {
+            creativeJson.put("photo_id", requestJson.get("photo_id"));
+        }
+
+        // 素材类型
+        if (!Check.isNull(requestJson.get("creative_material_type"))) {
+            creativeJson.put("creative_material_type", requestJson.get("creative_material_type"));
+        }
+
+
+        String action_bar_text = requestJson.getString("action_bar_text");
+        String description = requestJson.getString("description");
+        String click_track_url = requestJson.getString("click_track_url");
+
+
+        JSONArray imageTokens = requestJson.getJSONArray("image_tokens");
+        if (!Check.isNull(imageTokens)) {
+            for (int i = 0; i < imageTokens.size(); i++) {
+                JSONObject imageJson = imageTokens.getJSONObject(i);
+                if (!Check.isNull(imageJson)) {
+
+                }
+
+            }
+
+        }
+
+
+        JSONObject returnJson = new JSONObject();
+
+
+        return returnJson;
+    }
+
+
 }
 
 

+ 41 - 13
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -3,6 +3,7 @@ package cn.com.ctop.kuaishou.modules.batch.service.impl;
 import cn.com.ctop.common.module.entity.CtopOauthToken;
 import cn.com.ctop.common.module.entity.MaterialInfo;
 import cn.com.ctop.common.module.entity.UserAllocation;
+import cn.com.ctop.common.module.enums.MaterialEnum;
 import cn.com.ctop.common.module.mapper.MaterialInfoMapper;
 import cn.com.ctop.common.module.service.ICtopOauthTokenService;
 import cn.com.ctop.common.module.service.IUserAllocationService;
@@ -103,6 +104,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
     private IKuaishouReportHourlyAccountService hourlyAccountService;
     @Autowired
     private KuaiShouAdvertiserBaseInfoMapper advertiserBaseInfoMapper;
+    @Autowired
+    private IKuaiShouImageGetService iKuaiShouImageGetService;
 
     @Override
     public void getAdvertiserReportHourly(CtopOauthToken token, Date startDate, Date endDate) {
@@ -240,11 +243,19 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         List<KuaiShouVideoGet> videoGets = new ArrayList<>();
         for (int i = 0; i < details.size(); i++) {
             var detailJson = details.getJSONObject(i);
+            if (Check.isNull(detailJson.getString("signature"))) {
+                continue;
+            }
             var kuaiShouVideoGet = JSONObject.toJavaObject(detailJson, KuaiShouVideoGet.class);
             kuaiShouVideoGet.setAccountId(token.getAccountId());
-            kuaiShouVideoGet.setId("" + token.getAccountId() + kuaiShouVideoGet.getPhotoId());
+            kuaiShouVideoGet.setId(token.getAccountId() + kuaiShouVideoGet.getSignature());
             kuaiShouVideoGet.setCreateTime(new Date());
             kuaiShouVideoGet.setUpdateTime(new Date());
+            Integer type = MaterialEnum.getTypeBySize(kuaiShouVideoGet.getWidth(), kuaiShouVideoGet.getHeight());
+            if (!Check.isNull(type)) {
+                kuaiShouVideoGet.setMaterialType(type);
+            }
+
             videoGets.add(kuaiShouVideoGet);
         }
         kuaiShouVideoGetService.replaceBatch(videoGets);
@@ -2180,12 +2191,16 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                             if (!Check.isNull(dataJson)) {
                                 KuaiShouVideoGet videoGet = new KuaiShouVideoGet();
                                 videoGet.setAccountId(advertiserId);
-                                videoGet.setId(advertiserId + photoId);
+                                videoGet.setId(advertiserId + signature);
                                 videoGet.setWidth(dataJson.getInteger("width"));
                                 videoGet.setHeight(dataJson.getInteger("height"));
                                 videoGet.setUrl(dataJson.getString("url"));
                                 videoGet.setPhotoId(dataJson.getString("photo_id"));
                                 videoGet.setCoverUrl(dataJson.getString("cover_url"));
+                                Integer type = MaterialEnum.getTypeBySize(dataJson.getInteger("width"), dataJson.getInteger("height"));
+                                if (!Check.isNull(type)) {
+                                    videoGet.setMaterialType(type);
+                                }
                                 videoGet.setSignature(signature);
                                 kuaiShouVideoGetService.saveOrUpdate(videoGet);
 
@@ -2211,6 +2226,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
      * @param accessToken
      * @param imageToken
      */
+
+
     @Override
     public void imageGet(Long advertiserId, String accessToken, String imageToken) {
         try {
@@ -2230,21 +2247,20 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                     if (!Check.isNull(dataJson)) {
                         String signature = dataJson.getString("signature");
                         KuaiShouImageGet imageGet = new KuaiShouImageGet();
+                        imageGet.setId(advertiserId + signature);
                         imageGet.setAccountId(advertiserId);
                         imageGet.setUrl(dataJson.getString("url"));
-                        imageGet.setWidth(dataJson.getLong("width"));
-                        imageGet.setHeight(dataJson.getLong("height"));
+                        imageGet.setWidth(dataJson.getInteger("width"));
+                        imageGet.setHeight(dataJson.getInteger("height"));
                         imageGet.setSize(dataJson.getLong("size"));
                         imageGet.setFormat(dataJson.getString("format"));
-
+                        Integer type = MaterialEnum.getTypeBySize(dataJson.getInteger("width"), dataJson.getInteger("height"));
+                        if (!Check.isNull(type)) {
+                            imageGet.setMaterialType(type);
+                        }
                         imageGet.setSignature(signature);
                         imageGet.setImageToken(dataJson.getString("image_token"));
-                        Map<String, Object> deleteMap = new HashMap<>();
-                        deleteMap.put("account_id", advertiserId);
-                        deleteMap.put("signature", signature);
-                        imageGetMapper.deleteByMap(deleteMap);
-
-                        imageGetMapper.insert(imageGet);
+                        iKuaiShouImageGetService.saveOrUpdate(imageGet);
                     }
                 } else {
                     log.error("获取广告图片失败,advertiser_id:{},返回信息:{}", advertiserId, resultJson);
@@ -2815,12 +2831,24 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         List<KuaiShouImageGet> imageGets = new ArrayList<>();
         for (int i = 0; i < details.size(); i++) {
             var detailJson = details.getJSONObject(i);
+
+            if (Check.isNull(detailJson.getString("signature"))) {
+                continue;
+            }
+
             var kuaiShouImageGet = JSONObject.toJavaObject(detailJson, KuaiShouImageGet.class);
 
             if (StringUtils.isBlank(String.valueOf(kuaiShouImageGet.getImageToken()))) {
                 continue;
             }
+            kuaiShouImageGet.setId(token.getAccountId() + kuaiShouImageGet.getSignature());
             kuaiShouImageGet.setAccountId(token.getAccountId());
+
+            Integer type = MaterialEnum.getTypeBySize(kuaiShouImageGet.getWidth(), kuaiShouImageGet.getHeight());
+            if (!Check.isNull(type)) {
+                kuaiShouImageGet.setMaterialType(type);
+            }
+
             kuaiShouImageGet.setCreateTime(new Date());
             kuaiShouImageGet.setUpdateTime(new Date());
             imageGets.add(kuaiShouImageGet);
@@ -2858,8 +2886,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         List<KuaiShouImageGet> list = new ArrayList<>();
         KuaiShouImageGet kuaiShouImageGet1 = new KuaiShouImageGet();
         kuaiShouImageGet1.setUrl("http://static.yximgs.com/udata/pkg/markb21f94845c4350.jpg");
-        kuaiShouImageGet1.setWidth(720L);
-        kuaiShouImageGet1.setHeight(1280L);
+        kuaiShouImageGet1.setWidth(720);
+        kuaiShouImageGet1.setHeight(1280);
         kuaiShouImageGet1.setSize(441029L);
         kuaiShouImageGet1.setFormat("jpg");
         kuaiShouImageGet1.setImageToken("market0a8a3104ee6b4f148ab21f94845c4350.jpg");