Bläddra i källkod

度小满,初版2

zhaoxian 2 år sedan
förälder
incheckning
cd3b6cc141

+ 2 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/common/module/utils/HttpUtils.java

@@ -1026,6 +1026,8 @@ public class HttpUtils {
             client = HttpClientBuilder.create().build();
             httpPost.setURI(URI.create(url));
             httpPost.setEntity(entity);
+            RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(12000).setConnectTimeout(12000).build();
+            httpPost.setConfig(requestConfig);
             response = client.execute(httpPost);
             if (response != null && response.getStatusLine().getStatusCode() == 200) {
                 BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));

+ 2 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/duxiaoman/service/impl/DuxiaomanMaterialInfoServiceImpl.java

@@ -230,11 +230,13 @@ public class DuxiaomanMaterialInfoServiceImpl extends ServiceImpl<DuxiaomanMater
             params.put("file_ids", materialInfo.getFileId());
             //素材中使用的版权内容已获得有效书面授权书 默认值 1
             params.put("authorize", "1");
+            params.put("description", materialInfo.getMaterialName());
             StringBuffer md5Str = new StringBuffer();
             md5Str.append("app_id=").append(duAppId)
                     .append("&authorize=1")
                     .append("&channel_id=").append("3715834215185534246")
                     .append("&datetime=").append(datetime)
+                    .append("&description=").append(materialInfo.getMaterialName())
                     .append("&file_ids=").append(materialInfo.getFileId())
                     .append("&type=").append(type).append(duToken);
             String sign = DigestUtils.md5Hex(md5Str.toString());