瀏覽代碼

配置文件调整

yumeng 5 年之前
父節點
當前提交
a78209dd74

+ 9 - 6
jeecg-boot-module-system/src/main/resources/application-test.yml

@@ -34,6 +34,9 @@ spring:
           starttls:
             enable: true
             required: true
+  ## quartz定时任务,采用数据库方式
+  quartz:
+    job-store-type: jdbc
   #json 时间戳统一转换
   jackson:
     date-format:   yyyy-MM-dd HH:mm:ss
@@ -95,11 +98,11 @@ spring:
         filters: stat,slf4j
         # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
         connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
-#      datasource:
-#        master:
-#          url: jdbc:mysql://39.106.184.70:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
-#          username: hcst
-#          password: test@20190531
+      #      datasource:
+      #        master:
+      #          url: jdbc:mysql://39.106.184.70:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
+      #          username: hcst
+      #          password: test@20190531
       datasource:
         master:
           url: jdbc:mysql://39.106.184.70:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
@@ -130,7 +133,7 @@ mybatis-plus:
       id-type: 4
       # 默认数据库表下划线命名
       table-underline: true
- # configuration:
+  # configuration:
   #  map-underscore-to-camel-case: false
   #分页pageHelper
 pagehelper:

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

@@ -3175,7 +3175,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
     public List<ConvertVo> getConvertList(Long accountId, String accessToken, Integer type) {
         List<ConvertVo> convertVoList = new ArrayList<>();
         try {
-
             log.info("获取转化目标:accountId:{}", accountId);
             String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.CONVERT_LIST;
             Map<String, String> headers = new HashMap<>();
@@ -3184,7 +3183,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             JSONObject requestJson = new JSONObject();
             requestJson.put("advertiser_id", accountId);
             requestJson.put("type", type);
-
             String result = HttpUtils.kuaiShouhttpPostRequest(url, requestJson.toJSONString(), headers);
             JSONObject resultJson = JSONObject.parseObject(result);
             Integer code = resultJson.getInteger("code");
@@ -3197,11 +3195,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                             ConvertVo convertVo = JsonUtil.jsonToObj(details.getJSONObject(i), ConvertVo.class);
                             convertVoList.add(convertVo);
                         }
-
                     }
-
                 }
-
             }
         } catch (Exception e) {
             e.printStackTrace();