yaozhixue 1 年之前
父节点
当前提交
2b6f4babf2

+ 2 - 0
src/main/java/com/zfire/jiasm/syncdata/gree/GreeLogic.java

@@ -153,6 +153,8 @@ public class GreeLogic {
         forms.put("client_id", Collections.singletonList(clientFileId));
         forms.put("client_secret", Collections.singletonList(clientFileSecert));
         forms.put("grant_type", Collections.singletonList("client_credentials"));
+        log.info("【获取总部文件token】参数:{}",forms);
+        log.info("【获取总部文件 】tokenFileUrl:{}",tokenFileUrl);
         String s = HttpUtils.requestXwww(tokenFileUrl, forms);
         //String s = HttpUtils.requestPostForm(tokenUrl, map, null);
         log.info("【获取总部文件token】response:{}",s);

+ 3 - 0
src/main/java/com/zfire/jiasm/syncdata/service/impl/GLPPWXGQueryUpdateServiceImpl.java

@@ -445,6 +445,9 @@ log.info("从总部获取图片参数{}",JSONObject.toJSONString(zj));
     @NotNull
     private String putCert(String image) throws Exception {
         String id = IdWorker.getIdStr()+".jpeg";
+        if (image.contains(".jpeg")){
+            id = IdWorker.getIdStr();
+        }
         baseService.saveToFile(greeLogic.greeFileUrl(image), id);
         String file = id;
         ossUtil.uploadFile(id, new File(file));