Просмотр исходного кода

删除项目中无用的输出语句

syh 5 лет назад
Родитель
Сommit
294445100a
35 измененных файлов с 68 добавлено и 364 удалено
  1. 29 41
      jeecg-boot-base-common/src/main/java/org/jeecg/common/util/oConvertUtils.java
  2. 0 4
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/AuthController.java
  3. 1 3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/GraphqlController.java
  4. 5 15
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/YardController.java
  5. 3 1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouCommentAutoDelete.java
  6. 0 2
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouCrawlerJob.java
  7. 0 1
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/TestJob.java
  8. 0 7
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/CreateInternalServiceImpl.java
  9. 8 9
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java
  10. 7 11
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java
  11. 0 1
      jeecg-boot-module-system/src/test/java/org/jeecg/ChromeTest.java
  12. 0 4
      jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java
  13. 0 3
      module-common/src/main/java/cn/com/ctop/common/module/service/impl/FileInfoServiceImpl.java
  14. 0 9
      module-common/src/main/java/cn/com/ctop/common/module/utils/Base64Utils.java
  15. 0 13
      module-common/src/main/java/cn/com/ctop/common/module/utils/CsvUtils.java
  16. 0 5
      module-common/src/main/java/cn/com/ctop/common/module/utils/FileUploadTool.java
  17. 0 4
      module-common/src/main/java/cn/com/ctop/common/module/utils/HttpUtils.java
  18. 1 64
      module-common/src/main/java/cn/com/ctop/common/module/utils/HttpUtils2.java
  19. 0 15
      module-common/src/main/java/cn/com/ctop/common/module/utils/ImageUtils.java
  20. 0 2
      module-common/src/main/java/cn/com/ctop/common/module/utils/OSSUtils.java
  21. 0 5
      module-common/src/main/java/cn/com/ctop/common/module/utils/TransfMediaTool.java
  22. 0 17
      module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/service/impl/KuaishouCrawlerServiceImpl.java
  23. 2 4
      module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/util/FateadmHttpUtil.java
  24. 0 12
      module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/util/FateadmUtil.java
  25. 0 8
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java
  26. 1 12
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/KuaishouTest.java
  27. 7 38
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/service/impl/KuaishouWebInterfaceServiceImpl.java
  28. 0 1
      module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/vo/KuaishouAcceptVO.java
  29. 2 5
      module-report/src/main/java/cn/com/ctop/App.java
  30. 0 1
      module-report/src/main/java/cn/com/ctop/bytedance/entity/BytedancePlanDailyReport.java
  31. 0 3
      module-report/src/main/java/cn/com/ctop/bytedance/service/impl/ReportServiceImpl.java
  32. 2 5
      module-toutiao/src/main/java/cn/com/ctop/App.java
  33. 0 2
      module-toutiao/src/main/java/cn/com/ctop/toutiao/service/impl/ByteDanceAdvertiserDataServiceImpl.java
  34. 0 5
      module-toutiao/src/main/java/cn/com/ctop/toutiao/service/impl/ByteDanceCreativeServiceImpl.java
  35. 0 32
      module-toutiao/src/main/java/cn/com/ctop/toutiao/test/Test.java

+ 29 - 41
jeecg-boot-base-common/src/main/java/org/jeecg/common/util/oConvertUtils.java

@@ -2,6 +2,7 @@ package org.jeecg.common.util;
 
 import org.apache.commons.lang.StringEscapeUtils;
 
+import javax.servlet.http.HttpServletRequest;
 import java.io.UnsupportedEncodingException;
 import java.lang.reflect.Field;
 import java.math.BigDecimal;
@@ -11,22 +12,12 @@ import java.net.NetworkInterface;
 import java.net.SocketException;
 import java.net.UnknownHostException;
 import java.sql.Date;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-import java.util.Random;
-import java.util.Set;
+import java.util.*;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-import javax.servlet.http.HttpServletRequest;
-
 /**
- * 
+ *
  * @Author  张代浩
  *
  */
@@ -43,7 +34,7 @@ public class oConvertUtils {
 		}
 		return (false);
 	}
-	
+
 	public static boolean isNotEmpty(Object object) {
         if (object != null && !"".equals(object) && !"null".equals(object)) {
 			return (true);
@@ -75,9 +66,6 @@ public class oConvertUtils {
 		}
 		try {
 			byte[] b = strIn.getBytes(sourceCode);
-			for (int i = 0; i < b.length; i++) {
-				System.out.print(b[i] + "  ");
-			}
 			strOut = new String(b, targetCode);
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -167,7 +155,7 @@ public class oConvertUtils {
 			return (defval);
 		}
 	}
-	
+
 	public static Integer getInt(Object object) {
 		if (isEmpty(object)) {
 			return null;
@@ -211,7 +199,7 @@ public class oConvertUtils {
     public static String escapeJava(Object s) {
 		return StringEscapeUtils.escapeJava(getString(s));
     }
-	
+
 	public static String getString(Object object) {
 		if (isEmpty(object)) {
 			return "";
@@ -267,7 +255,7 @@ public class oConvertUtils {
 
 	/**
 	 * 判断一个类是否为基本数据类型。
-	 * 
+     *
 	 * @param clazz
 	 *            要判断的类。
 	 * @return true 表示为基本数据类型。
@@ -333,7 +321,7 @@ public class oConvertUtils {
 
 	/**
 	 * java去除字符串中的空格、回车、换行符、制表符
-	 * 
+     *
 	 * @param str
 	 * @return
 	 */
@@ -350,7 +338,7 @@ public class oConvertUtils {
 
 	/**
 	 * 判断元素是否在数组内
-	 * 
+     *
 	 * @param substring
 	 * @param source
 	 * @return
@@ -377,7 +365,7 @@ public class oConvertUtils {
 
 	/**
 	 * SET转换MAP
-	 * 
+     *
 	 * @param setobj
 	 * @return
 	 */
@@ -421,12 +409,12 @@ public class oConvertUtils {
 	private static boolean isInner(long userIp, long begin, long end) {
 		return (userIp >= begin) && (userIp <= end);
 	}
-	
+
 	/**
 	 * 将下划线大写方式命名的字符串转换为驼峰式。
 	 * 如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。</br>
 	 * 例如:hello_world->helloWorld
-	 * 
+     *
 	 * @param name
 	 *            转换前的下划线大写方式命名的字符串
 	 * @return 转换后的驼峰式命名的字符串
@@ -463,7 +451,7 @@ public class oConvertUtils {
 		}
 		return result.toString();
 	}
-	
+
 	/**
 	 * 将下划线大写方式命名的字符串转换为驼峰式。
 	 * 如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。</br>
@@ -486,13 +474,13 @@ public class oConvertUtils {
 		String result = sf.toString();
 		return result.substring(0, result.length() - 1);
 	}
-	
+
 	//update-begin--Author:zhoujf  Date:20180503 for:TASK #2500 【代码生成器】代码生成器开发一通用模板生成功能
 	/**
 	 * 将下划线大写方式命名的字符串转换为驼峰式。(首字母写)
 	 * 如果转换前的下划线大写方式命名的字符串为空,则返回空字符串。</br>
 	 * 例如:hello_world->HelloWorld
-	 * 
+     *
 	 * @param name
 	 *            转换前的下划线大写方式命名的字符串
 	 * @return 转换后的驼峰式命名的字符串
@@ -521,27 +509,27 @@ public class oConvertUtils {
 		return result.toString();
 	}
 	//update-end--Author:zhoujf  Date:20180503 for:TASK #2500 【代码生成器】代码生成器开发一通用模板生成功能
-	
-	/**
+
+    /**
 	 * 将驼峰命名转化成下划线
 	 * @param para
 	 * @return
 	 */
 	public static String camelToUnderline(String para){
         if(para.length()<3){
-        	return para.toLowerCase(); 
+            return para.toLowerCase();
         }
         StringBuilder sb=new StringBuilder(para);
         //定位
         int temp = 0;
-        //从第三个字符开始 避免命名不规范 
+        //从第三个字符开始 避免命名不规范
         for(int i=2;i<para.length();i++){
             if(Character.isUpperCase(para.charAt(i))){
                 sb.insert(i+temp, "_");
                 temp+=1;
             }
         }
-        return sb.toString().toLowerCase(); 
+        return sb.toString().toLowerCase();
 	}
 
 	/**
@@ -557,10 +545,10 @@ public class oConvertUtils {
 		}
 		return sb.toString();
 	}
-	
-	/**
+
+    /**
 	 * 获取类的所有属性,包括父类
-	 * 
+     *
 	 * @param object
 	 * @return
 	 */
@@ -576,8 +564,8 @@ public class oConvertUtils {
 		return fields;
 	}
 
-	
-	/**
+
+    /**
 	  * 将map的key全部转成小写
 	 * @param list
 	 * @return
@@ -586,10 +574,10 @@ public class oConvertUtils {
 		List<Map<String, Object>> select = new ArrayList<>();
 		for (Map<String, Object> row : list) {
 			 Map<String, Object> resultMap = new HashMap<>();
-			 Set<String> keySet = row.keySet(); 
-			 for (String key : keySet) { 
-				 String newKey = key.toLowerCase(); 
-				 resultMap.put(newKey, row.get(key)); 
+            Set<String> keySet = row.keySet();
+            for (String key : keySet) {
+                String newKey = key.toLowerCase();
+                resultMap.put(newKey, row.get(key));
 			 }
 			 select.add(resultMap);
 		}

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

@@ -33,15 +33,11 @@ public class AuthController {
             switch (authType) {
                 case "bytedance":
                     codeUrl = bindAccountAuthService.getByteDanceCodeUrl(UUID.randomUUID().toString());
-                    System.out.println(codeUrl);
                     return "redirect:" + codeUrl;
                 case "kuaishou":
                     codeUrl = bindAccountAuthService.getKuaishouCodeUrl(UUID.randomUUID().toString());
-                    System.out.println(codeUrl);
                     return "redirect:" + codeUrl;
                 default:
-                    System.out.println("");
-
             }
         } catch (Exception e) {
             e.printStackTrace();

+ 1 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/GraphqlController.java

@@ -41,7 +41,6 @@ public class GraphqlController {
     @RequestMapping(value="/addkuaishouuser", method = RequestMethod.POST)
     public Result<Map<String,Object>> addKuaishouUser(@RequestBody JSONObject jsonObject){
         String url = jsonObject.getString("url");
-        System.out.println(jsonObject.toString());
         String uid = kuaishouWebInterfaceService.checkKuaishouUser(url);
         Map<String,Object> resultMap = new HashMap<String, Object>();
         if(uid == null){
@@ -77,8 +76,7 @@ public class GraphqlController {
         QueryWrapper<KuaishouVideo> queryWrapper = QueryGenerator.initQueryWrapper(video,null);
         queryWrapper.orderByDesc("num");
         queryWrapper.le("num",num);
-        System.out.println("num="+num);
-        Page<KuaishouVideo> page = new Page<KuaishouVideo>(1, 20);
+        Page<KuaishouVideo> page = new Page<>(1, 20);
         IPage<KuaishouVideo> pageList = kuaishouVideoService.page(page,queryWrapper);
         result.setResult(pageList);
         result.setSuccess(true);

+ 5 - 15
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/YardController.java

@@ -1,19 +1,20 @@
 package org.jeecg.modules.ctop.controller;
 
-import cn.com.ctop.manage.modules.actor.entity.*;
+import cn.com.ctop.manage.modules.actor.entity.Yard;
+import cn.com.ctop.manage.modules.actor.entity.YardComment;
+import cn.com.ctop.manage.modules.actor.entity.YardPhoto;
+import cn.com.ctop.manage.modules.actor.entity.YardVideo;
 import cn.com.ctop.manage.modules.actor.service.*;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import lombok.extern.slf4j.Slf4j;
-import org.apache.commons.codec.digest.DigestUtils;
 import org.jeecg.common.api.vo.Result;
 import org.jeecg.common.system.query.QueryGenerator;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
+
 import javax.servlet.http.HttpServletRequest;
-import java.io.FileInputStream;
-import java.io.IOException;
 
 @RestController
 @Slf4j
@@ -271,15 +272,4 @@ public class YardController {
         result.setResult(pageList);
         return result;
     }
-
-    public static void main(String[] args) {
-        String path = "D:\\sign\\2\\2.jpg";
-        String md5 = null;
-        try {
-            md5 = DigestUtils.md5Hex(new FileInputStream(path));
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-        System.out.println(md5);
-    }
 }

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

@@ -4,6 +4,7 @@ import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService
 import cn.com.ctop.common.module.entity.BindAccountLogin;
 import cn.com.ctop.common.module.service.IBindAccountLoginService;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import lombok.extern.slf4j.Slf4j;
 import org.quartz.Job;
 import org.quartz.JobExecutionContext;
 import org.quartz.JobExecutionException;
@@ -12,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import java.util.HashMap;
 import java.util.List;
 
+@Slf4j
 public class KuaishouCommentAutoDelete implements Job {
     @Autowired
     private IKuaishouWebInterfaceService kuaishouWebInterfaceService;
@@ -27,7 +29,7 @@ public class KuaishouCommentAutoDelete implements Job {
         if (list != null && list.size() > 0) {
             for (BindAccountLogin account : list) {
                 try {
-                    System.out.println("正在删除评论:" + account.getAccountName());
+                    log.info("正在删除评论:{}", account.getAccountName());
                     kuaishouWebInterfaceService.adkuaishouWebLogin(account.getAccountName(), account.getPassword());
                     kuaishouWebInterfaceService.deleteAllComment(new HashMap<>());
                     Thread.sleep(10000);

+ 0 - 2
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouCrawlerJob.java

@@ -6,7 +6,6 @@ import cn.com.ctop.crawler.modules.account.service.IKuaishouAppAccountService;
 import cn.com.ctop.crawler.modules.account.service.IKuaishouIosAccountService;
 import cn.com.ctop.kuaishou.modules.app.service.IKuaishouAppService;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import org.jeecg.common.system.query.QueryGenerator;
 import org.quartz.Job;
 import org.quartz.JobExecutionContext;
 import org.quartz.JobExecutionException;
@@ -25,7 +24,6 @@ public class KuaishouCrawlerJob implements Job {
     public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
         try {
             Integer page = 1;
-            System.out.println("begin");
             QueryWrapper<KuaishouAppAccount> queryWrapper = new QueryWrapper<KuaishouAppAccount>();
             queryWrapper.eq("path","/rest/n/feed/hot");
             List<KuaishouAppAccount> list = kuaishouAppAccountService.list(queryWrapper);

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

@@ -30,7 +30,6 @@ public class TestJob implements Job {
             driver.manage().timeouts().pageLoadTimeout(5, TimeUnit.SECONDS);
             driver.manage().timeouts().setScriptTimeout(5, TimeUnit.SECONDS);
             driver.get("http://b.e.kuaishou.com");
-            System.out.println(driver.getPageSource());
         } catch (Exception e) {
             e.printStackTrace();
         } finally {

+ 0 - 7
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/CreateInternalServiceImpl.java

@@ -208,7 +208,6 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
 
     @Override
     public Map<String, Object> createInternal(JSONObject requestJson) {
-        System.out.println(requestJson);
         Map<String, Object> resultMap = new HashMap<>();
         //1:获取用户名密码
         Long accountId = requestJson.getLong("accountId");
@@ -289,7 +288,6 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                 param.put("captcha", resp.pred_resl);
                 orderId = resp.req_id;
                 res = HttpUtils2.httpPostParamRequest("https://sso.toutiao.com/account_login/", param, header);
-                System.out.println("res:" + res);
                 jsonNode = mapper.readTree(res);
                 errorCode = jsonNode.get("error_code").asInt();
             }
@@ -341,7 +339,6 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                     res = HttpUtils2.httpPostRequest("https://ad.oceanengine.com/overture/campaign/create/", campaignParam, header);
                     JsonNode node = mapper.readTree(res);
                     campaignId = node.get("data").get("campaign_id").asText();
-                    System.out.println("创建广告组返回信息" + res);
                 }
 
                 Integer itratorNum = requestJson.getInteger("itratorNum");
@@ -369,7 +366,6 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                         audienceParam.put("location_type", 4);
                         audienceParam.put("aweme_account_fans", 0);
                         String tokenStr = HttpUtils2.httpPostRequest("https://ad.oceanengine.com/api/v1/hl/ad/audience/estimate/", audienceParam, header);
-                        System.out.println("tokenStr:" + tokenStr);
                         JsonNode tokenNode = mapper.readTree(tokenStr);
                         Map<String, Object> planParam = new HashMap<>();
                         //模板名称
@@ -477,10 +473,8 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                                 planParam.put("convert_id", convertId);
                             }
                         }
-                        System.out.println("广告组创建参数:" + planParam);
                         String createResult = HttpUtils2.httpPostRequest("https://ad.oceanengine.com/overture/ad/create/", planParam, header);
                         JSONObject result = JSONObject.parseObject(createResult);
-                        System.out.println("创建广告计划返回信息:" + result.toJSONString());
                         String status = result.getString("status");
                         String msg = result.getString("msg");
                         if (null != status && !"success".equals(status)) {
@@ -644,7 +638,6 @@ public class CreateInternalServiceImpl implements ICreateInternalService {
                             //应用名
                             data.put("app_name", requestJson.getString("appName"));
                         }
-                        System.out.println(data.toJSONString());
                         resultMap = byteDanceCreativeService.creativeCreate(token.getAccountId() + "", adId, data.toJSONString());
                         Boolean createSuccess = (Boolean) resultMap.get("success");
                         if (null != createSuccess && !createSuccess) {

+ 8 - 9
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysUserController.java

@@ -421,7 +421,6 @@ public class SysUserController {
     @RequestMapping(value = "/generateUserId", method = RequestMethod.GET)
     public Result<String> generateUserId() {
         Result<String> result = new Result<>();
-        System.out.println("我执行了,生成用户ID==============================");
         String userId = UUID.randomUUID().toString().replace("-", "");
         result.setSuccess(true);
         result.setResult(userId);
@@ -752,7 +751,7 @@ public class SysUserController {
         }
         return result;
     }
-    
+
     /**
          *  查询当前用户的所有部门/当前部门编码
      * @return
@@ -775,12 +774,12 @@ public class SysUserController {
         return result;
     }
 
-    
+
 
 
 	/**
 	 * 用户注册接口
-	 * 
+     *
 	 * @param jsonObject
 	 * @param user
 	 * @return
@@ -852,7 +851,7 @@ public class SysUserController {
 		String username = sysUser.getUsername();
 		Result<Map<String, Object>> result = new Result<Map<String, Object>>();
 		Map<String, Object> map = new HashMap<String, Object>();
-		if (oConvertUtils.isNotEmpty(phone)) { 
+        if (oConvertUtils.isNotEmpty(phone)) {
 			SysUser userList = sysUserService.getUserByPhone(phone);
 			map.put("username",userList.getUsername());
 			map.put("phone",userList.getPhone());
@@ -872,8 +871,8 @@ public class SysUserController {
 		result.setMessage("验证失败");
 		return result;
 	}
-	
-	/**
+
+    /**
 	 * 用户手机号验证
 	 */
 	@PostMapping("/phoneVerification")
@@ -892,8 +891,8 @@ public class SysUserController {
 		result.setSuccess(true);
 		return result;
 	}
-	
-	/**
+
+    /**
 	 * 用户更改密码
 	 */
 	@GetMapping("/passwordChange")

+ 7 - 11
jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/service/impl/SysDepartServiceImpl.java

@@ -1,13 +1,10 @@
 package org.jeecg.modules.system.service.impl;
 
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-import java.util.UUID;
-
-
 import cn.com.ctop.common.module.utils.Check;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import io.netty.util.internal.StringUtil;
 import org.jeecg.common.constant.CommonConstant;
 import org.jeecg.common.util.YouBianCodeUtil;
 import org.jeecg.modules.system.entity.SysDepart;
@@ -19,10 +16,10 @@ import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
-import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
-import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-
-import io.netty.util.internal.StringUtil;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.util.UUID;
 
 /**
  * <p>
@@ -155,7 +152,6 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
      * @Override
      *
      * @Transactional public boolean removeDepartDataById(String id) {
-     * System.out.println("要删除的ID 为=============================>>>>>"+id); boolean
      * flag = this.removeById(id); return flag; }
      */
 

+ 0 - 1
jeecg-boot-module-system/src/test/java/org/jeecg/ChromeTest.java

@@ -30,7 +30,6 @@
 //
 //    @Test
 //    public void addBookToEmptyList() throws InterruptedException {
-//        System.out.println("服务器端口:" + 3000);
 //        // 要测试的网址
 //        String baseUrl = "http://localhost:" + 3000 + "/TEST" ;
 //        browser.get(baseUrl);

+ 0 - 4
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -53,7 +53,6 @@ public class SampleTest {
     @Test
     public void testLogin() {
         Map<String, Object> map = createInternalService.checkAccountPassword("dcd_ad@bytedance.com", "typdDCD@2018");
-        System.out.println(map.toString());
     }
 
     @Autowired
@@ -156,7 +155,6 @@ public class SampleTest {
     @Test
     public void testFileType() {
         File file = new File("D:\\工作文件\\360借条\\快手后台数据-户1.csv");
-        System.out.println(file);
     }
 
     @Test
@@ -167,7 +165,6 @@ public class SampleTest {
     @Test
     public void testNg() {
         JSONObject json = new JSONObject();
-        System.err.println(json);
         createInternalService.createInternal(json);
     }
 
@@ -185,7 +182,6 @@ public class SampleTest {
         JSONObject wordsObject = fileInfoService.getCreativeWord(token, token.getAccountId());
         String getTitle = "哈哈{日期}{男人女人}";
         JSONArray ids = getCreativeWordIds(getTitle, wordsObject);
-        System.out.println(ids);
     }
 
     public JSONArray getCreativeWordIds(String getTitle, JSONObject wordsObject) {

+ 0 - 3
module-common/src/main/java/cn/com/ctop/common/module/service/impl/FileInfoServiceImpl.java

@@ -60,7 +60,6 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
         //TODO查询是否已经上传过头条平台
         CtopOauthToken token = tokenService.getOauthTokenByAccountId(accountId);
         JSONObject resultObject = uploadAdvideo(token, videoUrl, token.getAccountId() + "");
-        System.out.println(resultObject);
         Integer code = resultObject.getInteger("code");
         String message = resultObject.getString("message");
         if (null == code || code != 0) {
@@ -86,7 +85,6 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
         JSONArray imageIds = new JSONArray();
         for (int i = 0; i < imageUrls.length; i++) {
             JSONObject resultObject = uploadAdImage(token, imageUrls[i], token.getAccountId() + "");
-            System.out.println(resultObject);
             Integer code = resultObject.getInteger("code");
             String message = resultObject.getString("message");
             if (null == code || code != 0) {
@@ -327,7 +325,6 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo> i
             return savePath;/*网络资源截取并存储本地成功返回true*/
 
         } catch (Exception e) {
-            System.out.println(e + fileUrl + savePath);
             return null;
         }
     }

Разница между файлами не показана из-за своего большого размера
+ 0 - 9
module-common/src/main/java/cn/com/ctop/common/module/utils/Base64Utils.java


+ 0 - 13
module-common/src/main/java/cn/com/ctop/common/module/utils/CsvUtils.java

@@ -15,9 +15,6 @@ public class CsvUtils {
         try {
             if (!file.exists()) {
                 file.createNewFile();
-                System.out.println("文件不存在,新建成功!");
-            } else {
-                System.out.println("文件存在!");
             }
         } catch (Exception e) {
             e.printStackTrace();
@@ -32,16 +29,6 @@ public class CsvUtils {
             list.add(reader.getValues());
         }
         reader.close();
-        for (int row = 0; row < list.size(); row++) {
-            int length = list.get(row).length;
-            if (length > 0) {
-                for (int i = 0; i < length; i++) {
-                    System.out.print(list.get(row)[i] + ",");
-                }
-
-            }
-            System.out.println("");
-        }
         return list;
     }
 

+ 0 - 5
module-common/src/main/java/cn/com/ctop/common/module/utils/FileUploadTool.java

@@ -52,15 +52,12 @@ public class FileUploadTool {
                     bflag = true;
                 } else {
                     bflag = false;
-                    System.out.println("文件类型不允许");
                 }
             } else {
                 bflag = false;
-                System.out.println("文件大小超范围");
             }
         } else {
             bflag = false;
-            System.out.println("文件为空");
         }
         if (bflag) {
             //  String logoPathDir = "/video/";
@@ -72,14 +69,12 @@ public class FileUploadTool {
                 logoSaveFile.mkdirs();
             }
             String name = fileName.substring(0, fileName.lastIndexOf("."));
-            System.out.println("文件名称:" + name);
             // 新的文件名
             String newFileName = this.getName(fileName);
             // 文件扩展名
             String fileEnd = this.getFileExt(fileName);
             // 绝对路径
             String fileNamedirs = savaPath + File.separator + newFileName + fileEnd;
-            System.out.println("保存的绝对路径:" + fileNamedirs);
             File filedirs = new File(fileNamedirs);
             // 转入文件
             try {

+ 0 - 4
module-common/src/main/java/cn/com/ctop/common/module/utils/HttpUtils.java

@@ -235,10 +235,6 @@ public class HttpUtils {
             HttpPost httppost = new HttpPost(url);
             httppost.setHeader("User-Agent", USER_AGENT);
             httppost.addHeader("Content-Type", "application/json");
-            List<Cookie> list = COOKIESTORE.getCookies();
-            for (Cookie ck : list) {
-                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-            }
             for (String key : headers.keySet()) {
                 httppost.setHeader(key, headers.get(key));
             }

+ 1 - 64
module-common/src/main/java/cn/com/ctop/common/module/utils/HttpUtils2.java

@@ -20,7 +20,6 @@ import org.apache.http.client.methods.HttpGet;
 import org.apache.http.client.methods.HttpPost;
 import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
 import org.apache.http.conn.ssl.TrustStrategy;
-import org.apache.http.cookie.Cookie;
 import org.apache.http.entity.StringEntity;
 import org.apache.http.impl.client.BasicCookieStore;
 import org.apache.http.impl.client.CloseableHttpClient;
@@ -75,11 +74,6 @@ public class HttpUtils2 {
             HttpPost httppost = new HttpPost(url);
             httppost.setHeader("User-Agent", USER_AGENT);
 
-            List<Cookie> list = cookieStore.getCookies();
-            for (Cookie ck : list) {
-                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-            }
-            System.out.println("-------------------------------------");
             for (String key : headers.keySet()) {
                 httppost.setHeader(key, headers.get(key));
             }
@@ -93,9 +87,6 @@ public class HttpUtils2 {
             UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(paramList);
             // 第一步:通过setEntity 将我们的entity对象传递过去
             httppost.setEntity(formEntity);
-
-            //httppost.setHeader("Content-Type", "application/json");
-//            httppost.setEntity(new StringEntity(new Gson().toJson(param), Charset.forName("UTF-8")));
             HttpEntity respentity;
 
             HttpResponse response = httpClient.execute(httppost);
@@ -116,23 +107,15 @@ public class HttpUtils2 {
     }
 
     public static String httpPostRequest(String url, Map<String, Object> param, Map<String, String> headers) {
-//        HttpClient httpclient = HttpClientBuilder.create().setRedirectStrategy(new LaxRedirectStrategy()).build();
         HttpClient httpClient = createSSLClientDefault();
         String strReturn = "";
         try {
             HttpPost httppost = new HttpPost(url);
             httppost.setHeader("User-Agent", USER_AGENT);
             httppost.addHeader("Content-Type", "application/json");
-            List<Cookie> list = cookieStore.getCookies();
-            System.out.println("###################################################");
-            for (Cookie ck : list) {
-                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-            }
-            System.out.println("###################################################");
             for (String key : headers.keySet()) {
                 httppost.setHeader(key, headers.get(key));
             }
-            //httppost.setHeader("Content-Type", "application/json");
             httppost.setEntity(new StringEntity(new Gson().toJson(param), Charset.forName("UTF-8")));
             HttpEntity respentity;
 
@@ -155,17 +138,12 @@ public class HttpUtils2 {
 
 
     public static String httpPostRequestTest(String url, String body, Map<String, String> headers) {
-//        HttpClient httpclient = HttpClientBuilder.create().setRedirectStrategy(new LaxRedirectStrategy()).build();
         HttpClient httpClient = createSSLClientDefault();
         String strReturn = "";
         try {
             HttpPost httppost = new HttpPost(url);
             httppost.setHeader("User-Agent", USER_AGENT);
             httppost.addHeader("Content-Type", "application/json");
-            List<Cookie> list = cookieStore.getCookies();
-            for (Cookie ck : list) {
-                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-            }
             for (String key : headers.keySet()) {
                 httppost.setHeader(key, headers.get(key));
             }
@@ -205,7 +183,6 @@ public class HttpUtils2 {
                 httppost.setEntity(new StringEntity(body, Charset.forName("UTF-8")));
             }
             HttpEntity respentity;
-            System.err.println(httppost);
             HttpResponse response = httpClient.execute(httppost);
             int statusCode = response.getStatusLine().getStatusCode();
             if (statusCode == HttpStatus.SC_OK) {
@@ -229,10 +206,6 @@ public class HttpUtils2 {
             HttpPost httppost = new HttpPost(url);
             httppost.setHeader("User-Agent", USER_AGENT);
             httppost.addHeader("Content-Type", "application/json");
-            List<Cookie> list = cookieStore.getCookies();
-            for (Cookie ck : list) {
-                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-            }
             for (String key : headers.keySet()) {
                 httppost.setHeader(key, headers.get(key));
             }
@@ -260,19 +233,10 @@ public class HttpUtils2 {
         HttpClient httpClient = createSSLClientDefault();
         HttpResponse response = null;
         HttpGet httpGet = new HttpGet(url);
-//        httpPost.setHeader("Content-Type", "application/json");
         String result = null;
         try {
             httpGet.setHeader("User-Agent", USER_AGENT);
-            List<Cookie> list2 = cookieStore.getCookies();
-//            for (Cookie ck : list2) {
-//                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-//            }
             response = httpClient.execute(httpGet);
-            List<Cookie> list = cookieStore.getCookies();
-//            for (Cookie ck : list) {
-//                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-//            }
             int statusCode = response.getStatusLine().getStatusCode();
             if (statusCode == HttpStatus.SC_MOVED_PERMANENTLY || statusCode == HttpStatus.SC_MOVED_TEMPORARILY) {
                 String newUrl = response.getFirstHeader("Location").getValue();
@@ -294,7 +258,6 @@ public class HttpUtils2 {
     }
 
     public static String httpRequest(String url, String strParams) throws Exception {
-//        HttpClient httpclient = HttpClientBuilder.create().build();
         HttpClient httpClient = createSSLClientDefault();
         String strReturn = "";
         try {
@@ -316,7 +279,6 @@ public class HttpUtils2 {
     }
 
     public static String httpRequest(String url, CookieStore cookies, Map<String, String> parameterMap) throws Exception {
-//        HttpClient httpclient = getHttpclient();
         HttpClient httpClient = createSSLClientDefault();
         String strReturn = "";
         try {
@@ -358,13 +320,6 @@ public class HttpUtils2 {
         HttpClient httpClient = createSSLClientDefault();
         HttpResponse response = null;
         HttpPost httpPost = new HttpPost(url);
-        List<Cookie> list = cookieStore.getCookies();
-//        cookieStore.clear();
-//        for (Cookie ck : list) {
-//
-//            System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-//        }
-//        System.out.println("-------------------------------------");
         httpPost.setHeader("Content-Type", "application/json");
         String result = null;
 
@@ -379,10 +334,6 @@ public class HttpUtils2 {
             while ((line = reader.readLine()) != null) {
                 builder.append(line);
             }
-//            for (Cookie ck : list) {
-//
-//                System.out.println(ck.getName() + "=" + ck.getValue() + "," + ck.getDomain());
-//            }
             result = builder.toString();
         } catch (Exception e) {
             e.printStackTrace();
@@ -417,44 +368,30 @@ public class HttpUtils2 {
 
             TTFParser ttfParser = new TTFParser();
             TrueTypeFont ttf = ttfParser.parse(urlconn.getInputStream());
-//            System.out.println(new Gson().toJson(ttf.getGlyph().getGlyphs()));
             GlyphData[] datas = ttf.getGlyph().getGlyphs();
             CmapSubtable[] tables = ttf.getCmap().getCmaps();
-            Gson gson = new Gson();
-//            System.out.println(gson.toJson(tables));
             CmapSubtable table = tables[0];
-            Map<String, Integer> numberMap = new HashMap<String, Integer>();
-            Map<String, String> fontMap = new HashMap<String, String>();
+            Map<String, String> fontMap = new HashMap<>();
             for (int i = 0; i <= 13; i++) {
                 GlyphData data = datas[i];
                 if (data != null) {
-//                    System.out.println("getBoundingBox" + data.getBoundingBox());
                     float fx = data.getBoundingBox().getLowerLeftX();
                     float fy = data.getBoundingBox().getLowerLeftY();
                     float rx = data.getBoundingBox().getUpperRightX();
                     float ry = data.getBoundingBox().getUpperRightY();
                     Integer num = getKuaishouNumber(String.valueOf(rx - fx) + "#" + String.valueOf(ry - fy));
-//                    if (num != null) {
-//                        System.out.println(num);
-//                    }
                     fontMap.put(String.valueOf((char) table.getCharCodes(i).get(0).intValue()), String.valueOf(num));
-
                 }
             }
-//            System.out.println(new Gson().toJson(fontMap));
             fontsMap.put(ttfName, fontMap);
             for (GlyphData data : datas) {
                 if (data != null) {
-//                    System.out.println("getBoundingBox" + data.getBoundingBox());
                     float fx = data.getBoundingBox().getLowerLeftX();
                     float fy = data.getBoundingBox().getLowerLeftY();
                     float rx = data.getBoundingBox().getUpperRightX();
                     float ry = data.getBoundingBox().getUpperRightY();
-                    Integer num = getKuaishouNumber(String.valueOf(fx) + "#" + String.valueOf(fy) + "#" + String.valueOf(rx) + "#" + String.valueOf(ry));
-//                    System.out.println(num);
                 }
             }
-//            System.out.println(new Gson().toJson(numberMap));
         } catch (Exception e) {
             e.printStackTrace();
         }

+ 0 - 15
module-common/src/main/java/cn/com/ctop/common/module/utils/ImageUtils.java

@@ -153,15 +153,6 @@ public class ImageUtils {
         if (!coverFile.exists()) {
             coverFile.mkdirs();
         }
-//        int bx = 20;
-//        int by = 50;
-//        int cx = 80;
-//        int cy = 220;
-
-//        int bx = 20;
-//        int by = 50;
-//        int cx = 105;
-//        int cy = 170;
 
         int bx = 20;
         int by = 50;
@@ -186,7 +177,6 @@ public class ImageUtils {
         for (String str : files) {
             String imagePath = file.getAbsolutePath() + "/" + str;
             try {
-                System.out.println(imagePath);
                 File imageFile = new File(imagePath);
                 for (String content : list) {
                     InputStream inputStream = new FileInputStream(imageFile);
@@ -195,12 +185,7 @@ public class ImageUtils {
             } catch (IOException e) {
                 e.printStackTrace();
             }
-//
         }
-
-
-        System.out.println("ok");
-//
     }
 
     public List<String> getContentList() {

+ 0 - 2
module-common/src/main/java/cn/com/ctop/common/module/utils/OSSUtils.java

@@ -155,8 +155,6 @@ public class OSSUtils {
             PutObjectResult putResult = ossClient.putObject(bucketName, folder + fileName, is, metadata);
             Date expiration = new Date(System.currentTimeMillis() + 3600L * 1000 * 24 * 365 * 10);
             String url = ossClient.generatePresignedUrl(bucketName, folder + fileName, expiration).toString();
-            System.out.println(url);
-            System.out.println(putResult.toString());
             // 解析结果
             resultStr = putResult.getETag();
         } catch (Exception e) {

+ 0 - 5
module-common/src/main/java/cn/com/ctop/common/module/utils/TransfMediaTool.java

@@ -96,10 +96,6 @@ public class TransfMediaTool {
             // 进程信息输出到控制台
             Process p = builder.start();
             BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
-            String line = null;
-            while ((line = br.readLine()) != null) {
-                System.out.println(line);
-            }
             p.waitFor();// 直到上面的命令执行完,才向下执行
             return codcAviPath;
         } catch (Exception e) {
@@ -123,7 +119,6 @@ class PrintStream extends Thread {
             while (this != null) {
                 int streamChar = stream.read();
                 if (streamChar != -1) {
-                    System.out.print((char) streamChar);
                 } else {
                     break;
                 }

Разница между файлами не показана из-за своего большого размера
+ 0 - 17
module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/service/impl/KuaishouCrawlerServiceImpl.java


+ 2 - 4
module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/util/FateadmHttpUtil.java

@@ -200,7 +200,6 @@ public class FateadmHttpUtil {
     public static String CalcSign(String id, String key, String tm){
         String chk1 = calcMd5(tm + key);
         String sum = calcMd5(id + tm + chk1);
-        //System.out.printf("userid: %s key: %s tm: %s chk1: %s chk2: %s\n", id, key, tm, chk1, sum);
         return sum;
     }
     public static HttpResp ParseHttpResp(String resl){
@@ -271,7 +270,7 @@ public class FateadmHttpUtil {
         OutputStream out    = con.getOutputStream();
         String item_string  = boundarybytes_string + "Content-Disposition: form-data;name=\"";
         String param_string = item_string + "user_id\"\r\n\r\n" + pd_id + "\r\n"
-        		+ item_string + "timestamp\"\r\n\r\n" + stm + "\r\n" 
+                + item_string + "timestamp\"\r\n\r\n" + stm + "\r\n"
         		+ item_string + "sign\"\r\n\r\n" + sign + "\r\n"
         		+ item_string + "predict_type\"\r\n\r\n" + pred_type + "\r\n"
         		+ item_string + "up_type\"\r\n\r\nmt\r\n";
@@ -285,10 +284,9 @@ public class FateadmHttpUtil {
         out.write(file_strig.getBytes("UTF-8"));
         out.write(img_data);
         out.write(end_string.getBytes("UTF-8"));
-        // System.out.println(out.toString());
         out.flush();
         out.close();
- 
+
         StringBuffer buffer = new StringBuffer();
         BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream(), "UTF-8"));
         String temp;

+ 0 - 12
module-crawler/src/main/java/cn/com/ctop/crawler/modules/core/util/FateadmUtil.java

@@ -1,7 +1,6 @@
 package cn.com.ctop.crawler.modules.core.util;
 
 import java.net.URL;
-import java.util.Date;
 
 public class FateadmUtil {
     protected String app_id;
@@ -137,7 +136,6 @@ public class FateadmUtil {
             asign = FateadmHttpUtil.CalcSign(app_id, app_key, stm);
         }
         String pres = FateadmHttpUtil.MFPost(url, imgData, stm, pd_id, sign, app_id, asign, predType);
-        // System.out.println(pres);
         FateadmHttpUtil.HttpResp resp = FateadmHttpUtil.ParseHttpResp(pres);
         return resp;
     }
@@ -197,9 +195,7 @@ public class FateadmUtil {
             // 查询余额
             FateadmHttpUtil.HttpResp resp;
             // resp = api.QueryBalc();   // 查询余额返回详细信息
-            // System.out.printf("query balc!ret: %d cust: %f err: %s reqid: %s pred: %s\n", resp.ret_code, resp.cust_val, resp.err_msg, resp.req_id, resp.pred_resl);
             double balance = api.QueryBalcExtend();    // 直接返回余额结果
-            System.out.println("Balance:" + balance);
 
             // 具体类型可以查看官方网站的价格页选择具体的类型,不清楚类型的,可以咨询客服
 //            String pred_type = "30400";
@@ -207,26 +203,19 @@ public class FateadmUtil {
 //            String img_file = "./img.jpg";
 //            // 多网站类型时,需要增加src_url参数,具体请参考api文档: http://docs.fateadm.com/web/#/1?page_id=6
 //            resp    = api.PredictFromFile(pred_type, img_file);  // 返回识别结果的详细信息
-//            System.out.printf("predict from file!ret: %d cust: %f err: %s reqid: %s pred: %s\n", resp.ret_code, resp.cust_val, resp.err_msg, resp.req_id, resp.pred_resl);
             // String res1 = api.PredictFromFileExtend(pred_type, img_file); // 直接返回识别结果
-            // System.out.println("pred_resl:" + res1);
 /*
         // 如果是通过url或者截图得到二进制图片数据的,可以直接调用下面的接口
         resp    = api.PredictFromFile(pred_type, img_file);
-        System.out.printf("predict from file!ret: %d cust: %f err: %s reqid: %s pred: %s\n", resp.ret_code, resp.cust_val, resp.err_msg, resp.req_id, resp.pred_resl);
         // String res2 = api.PredictExtend(pred_type, img_data); // 直接返回识别结果
-        // System.out.println("pred_resl:" + res2);
 */
 //            boolean jflag      = false;
 //            if( jflag) {
 //                // 识别的结果如果与预期不符,可以调用这个接口将预期不符的订单退款
 //                // 退款仅在正常识别出结果后,无法通过网站验证的情况,请勿非法或者滥用,否则可能进行封号处理
 //                int ret = api.JusticeExtend(resp.req_id); // 直接返回是否成功
-//                if (ret == 0 ) System.out.println("Justice Success!");
-//                else System.out.println("Justice fail! code:" + ret);
 //
 //                resp = api.Justice(resp.req_id); // 返回完整信息
-//                System.out.printf("justice !ret: %d cust: %f err: %s reqid: %s pred: %s\n", resp.ret_code, resp.cust_val, resp.err_msg, resp.req_id, resp.pred_resl);
 //            }
 
             // 开发者可以选择将充值接口集成到软件中,普通用户可以使用充值卡直接进行充值
@@ -234,7 +223,6 @@ public class FateadmUtil {
             //String card_id = "36317545";
             //String card_key = "123456";
             //resp    = api.Charge(card_id, card_key);
-            //System.out.printf("charge !ret: %d cust: %f err: %s reqid: %s pred: %s\n", resp.ret_code, resp.cust_val, resp.err_msg, resp.req_id, resp.pred_resl);
         } catch (Exception e) {
             e.printStackTrace();
         }

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

@@ -119,7 +119,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
 
         String result = HttpUtils.httpPostRequest(url, param, headers);
         JSONObject resultJson = JSONObject.parseObject(result);
-        System.out.println(resultJson.toJSONString());
         Integer code = resultJson.getInteger("code");
         String message = resultJson.getString("message");
         if (null == code || code != 0) {
@@ -279,9 +278,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
                             KuaishouReportDailyAccount kuaishouReportDailyAccount = JSONObject.toJavaObject(detailJson, KuaishouReportDailyAccount.class);
                             kuaishouReportDailyAccount.setAccountId(advertiserId);
                             kuaishouReportDailyAccount.setId("" + advertiserId + kuaishouReportDailyAccount.getStatDate());
-
-                            System.out.println("-------------------------------------------");
-                            System.out.println(kuaishouReportDailyAccount);
                             dailyAccountService.saveOrUpdate(kuaishouReportDailyAccount);
                         }
                     }
@@ -313,7 +309,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         param.put("page", page);
 
         String result = HttpUtils.httpPostRequest(url, param, headers);
-        System.out.println(result);
         JSONObject resultJson = JSONObject.parseObject(result);
         Integer code = resultJson.getInteger("code");
         String message = resultJson.getString("message");
@@ -357,7 +352,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         KuaishouResult<KuaishouReportDailyCampaign> kuaishouResult = null;
         try {
             String result = HttpUtils.httpPostRequest(url, param, headers);
-            System.out.println(result);
             ObjectMapper mapper = new ObjectMapper();
             mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
             kuaishouResult = mapper.readValue(result, new TypeReference<KuaishouResult<KuaishouReportDailyCampaign>>() {
@@ -603,7 +597,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         KuaishouResult<KuaishouReportHourlyGroup> kuaishouResult = null;
         try {
             String result = HttpUtils.httpPostRequest(url, param, headers);
-            System.out.println(result);
             ObjectMapper mapper = new ObjectMapper();
             mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
             kuaishouResult = mapper.readValue(result, new TypeReference<KuaishouResult<KuaishouReportHourlyGroup>>() {
@@ -638,7 +631,6 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         param.put("page_size", 500);
         param.put("page", page);
 
-
         String result = HttpUtils.httpPostRequest(url, param, headers);
         JSONObject resultJson = JSONObject.parseObject(result);
         Integer code = resultJson.getInteger("code");

+ 1 - 12
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/KuaishouTest.java

@@ -29,7 +29,6 @@
 ////            long nextPageTime = KuaiShouNextPage.getNextPageTime(time);
 ////            KuaishouUserVo inputClientUrl = inputClientUrl("http://www.gifshow.com/s/6vyyITXo",0,time,nextPageTime);
 ////            List userVideoList = inputClientUrl.getUserVideoList();
-////            System.out.println(userVideoList.size());
 ////            ThreadPoolExecutor executor = new ThreadPoolExecutor(4, 4, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>(10000), Executors.defaultThreadFactory());
 ////
 ////            for(int j=0;j                 KuaiShou kuaiShou = userVideoList.get(j);
@@ -41,9 +40,7 @@
 //            Map map = KuaishouTest.getSigUrl("3x9gqyg37guxf9i");
 //            String url = KuaishouTest.getReadVideoPlayUrl(map);
 //            KuaishouTest.getVideoList(url);
-//            System.out.println(url);
 //            String userId = KuaishouTest.getUserId("3x9gqyg37guxf9i");
-//            System.out.println(userId);
 //    }
 //
 //
@@ -51,7 +48,6 @@
 //    private static List getVideoList(String readVideoPlayUrl) {
 //
 //        JSONObject jsonObject = new JSONObject(readVideoPlayUrl);
-//        System.out.println(jsonObject);
 //        JSONArray feeds = jsonObject.getJSONArray("feeds");
 //
 //        int length = feeds.length();
@@ -66,7 +62,7 @@
 //                JSONArray main_mv_urls = jsonObject1.getJSONArray("main_mv_urls");
 //                JSONObject jsonObject2 = main_mv_urls.getJSONObject(0);
 //                String videoUrl = jsonObject2.getString("url");
-//                System.out.println("videoUrl:"+videoUrl);
+
 //                //share_info  ("userId=3xwvjr74prbhz9s&photoId=3xfvvjb92hqpgdq",)
 //                String share_info = jsonObject1.getString("share_info");
 ////                kuaiShou.setShare_info(share_info);
@@ -104,7 +100,6 @@
 //
 //        FormBody formBody = requestBody.build();
 //
-//        System.out.println(HOTURL+queryStringUrl);
 //
 //        Request request = new Request.Builder()
 ////                .url(READURL + queryStringUrl)
@@ -204,10 +199,6 @@
 //            // TODO Auto-generated catch block
 //            e.printStackTrace();
 //        }
-//
-//        System.out.println(html);
-//
-//
 //    }
 //
 //    /**
@@ -344,11 +335,9 @@
 //            }
 //            String uriString = sb.toString();
 //            uriString = uriString + salt;
-//            //System.out.println("My String: \n" + uriString);
 //            // 3. MD5运算得到请求签名
 ////            sign = MD5.md5(uriString);
 //            sign = MD5Utils.getMD5(uriString);
-//            //System.out.println("My Sign:\n" +sign);
 //        } catch (Exception e) {
 //            e.printStackTrace();
 //        }

Разница между файлами не показана из-за своего большого размера
+ 7 - 38
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/service/impl/KuaishouWebInterfaceServiceImpl.java


+ 0 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/graphql/vo/KuaishouAcceptVO.java

@@ -18,7 +18,6 @@ public class KuaishouAcceptVO {
         SimpleDateFormat sdf = new SimpleDateFormat("MMM d, yyyy h:m:s aa", Locale.ENGLISH);
         try {
             Date d = sdf.parse("Oct 10, 2019 7:49:30 PM");
-            System.out.println(d.toLocaleString());
         } catch (ParseException e) {
             e.printStackTrace();
         }

+ 2 - 5
module-report/src/main/java/cn/com/ctop/App.java

@@ -4,10 +4,7 @@ package cn.com.ctop;
  * Hello world!
  *
  */
-public class App 
-{
-    public static void main( String[] args )
-    {
-        System.out.println( "Hello World!" );
+public class App {
+    public static void main(String[] args) {
     }
 }

+ 0 - 1
module-report/src/main/java/cn/com/ctop/bytedance/entity/BytedancePlanDailyReport.java

@@ -632,7 +632,6 @@ public class BytedancePlanDailyReport {
         }
 
         this.id = "" + this.adId + this.statDatetime.substring(0, 10);
-        System.out.println(this.id);
         this.createTime = new Date();
         this.updateTime = new Date();
     }

+ 0 - 3
module-report/src/main/java/cn/com/ctop/bytedance/service/impl/ReportServiceImpl.java

@@ -161,7 +161,6 @@ public class ReportServiceImpl implements IReportService {
             log.error("广告组报表数据获取异常:{}", message);
             return;
         }
-        System.out.println(getObject.toJSONString());
         JSONArray dataArray = getObject.getJSONObject("data").getJSONArray("list");
         if (null == dataArray || dataArray.size() <= 0) {
             log.info("广告组报表信息为空=》accountId:{}", token.getAccountId());
@@ -234,7 +233,6 @@ public class ReportServiceImpl implements IReportService {
             log.error("广告计划报表数据获取异常:{}", message);
             return;
         }
-        System.out.println(getObject.toJSONString());
         var dataArray = getObject.getJSONObject("data").getJSONArray("list");
         if (null == dataArray || dataArray.size() <= 0) {
             log.info("广告计划报表信息为空=》accountId:{}", token.getAccountId());
@@ -816,7 +814,6 @@ public class ReportServiceImpl implements IReportService {
             return savePath;/*网络资源截取并存储本地成功返回true*/
 
         } catch (Exception e) {
-            System.out.println(e + fileUrl + savePath);
             return null;
         }
     }

+ 2 - 5
module-toutiao/src/main/java/cn/com/ctop/App.java

@@ -4,10 +4,7 @@ package cn.com.ctop;
  * Hello world!
  *
  */
-public class App 
-{
-    public static void main( String[] args )
-    {
-        System.out.println( "Hello World!" );
+public class App {
+    public static void main(String[] args) {
     }
 }

+ 0 - 2
module-toutiao/src/main/java/cn/com/ctop/toutiao/service/impl/ByteDanceAdvertiserDataServiceImpl.java

@@ -127,7 +127,6 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
         }
         for (int i = 0; i < data.size(); i++) {
             JSONObject dataObject = data.getJSONObject(i);
-            System.out.println(dataObject.toJSONString());
             ByteDanceAdvertisePlan advertisePlan = new ByteDanceAdvertisePlan(dataObject, accountId);
             //清除清数据,插入新数据
             advertisePlanMapper.deleteById(advertisePlan.getId());
@@ -688,7 +687,6 @@ public class ByteDanceAdvertiserDataServiceImpl implements IByteDanceAdvertiserD
             data.put("retargeting_tags_include", getRetargetingTagsInclude);
         }
         data = setUserOrentationData(data, template);
-        System.out.println(data.toJSONString());
         return data;
     }
 

+ 0 - 5
module-toutiao/src/main/java/cn/com/ctop/toutiao/service/impl/ByteDanceCreativeServiceImpl.java

@@ -61,7 +61,6 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
         data.put("advertiser_id", token.getAccountId());
         data.put("ad_id", adId);
         JSONObject result = createCreative(data, token.getAccessToken());
-        System.out.println("创意返回数据:" + result.toJSONString());
         Integer code = result.getInteger("code");
         String message = result.getString("message");
         if (null == code || code != 0) {
@@ -71,7 +70,6 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
             resultMap.put("message", message);
             return resultMap;
         }
-        JSONObject dataObject = result.getJSONObject("data");
         resultMap.put("success", true);
         resultMap.put("code", 0);
         resultMap.put("message", "广告创意创建成功");
@@ -82,7 +80,6 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
     @Override
     public Map<String, Object> insertBatch(JSONObject template) {
         Map<String, Object> resultMap = new HashMap<>();
-        System.out.println(template.toJSONString());
         String getName = template.getString("name");
         String getAccountId = template.getLong("accountId") + "";
         Long campaignTemplateId = template.getLong("campaignId");
@@ -93,8 +90,6 @@ public class ByteDanceCreativeServiceImpl extends ServiceImpl<ByteDanceCreativeM
         Long convertId = template.getLong("convertId");
         Integer iteratorNum = template.getInteger("iteratorNum");
         //获取所有创意信息
-        JSONArray allCreatives = template.getJSONArray("creatives");
-
         JSONArray groupImageArray = null;
         JSONArray horizonImageArray = null;
         String horizonVideoCoverImage = null;

+ 0 - 32
module-toutiao/src/main/java/cn/com/ctop/toutiao/test/Test.java

@@ -40,18 +40,9 @@ public class Test {
             for (Cookie cookie : webDriver.manage().getCookies()) {
                 BasicClientCookie ck = new BasicClientCookie(cookie.getName(), cookie.getValue());
                 ck.setDomain("ad.oceanengine.com");
-//                if (cookie.getDomain().startsWith(".")){
-//                    ck.setDomain(cookie.getDomain().substring(1));
-//                }else {
-//                    ck.setDomain(cookie.getDomain());
-//                }
-
                 ck.setExpiryDate(cookie.getExpiry());
                 ck.setPath(cookie.getPath());
                 HttpUtils.COOKIESTORE.addCookie(ck);
-                System.out.println(cookie.getName() + "," + cookie.getValue() + "," + cookie.getDomain());
-//                ck.setDomain(".sso.toutiao.com");
-//                HttpUtils.cookieStore.addCookie(ck);
             }
 
             String html = webDriver.getPageSource();
@@ -73,12 +64,6 @@ public class Test {
             param.put("is_30_days_no_login", "true");
             param.put("service", "https://ad.oceanengine.com");
             String res = HttpUtils.httpPostParamRequest("https://sso.toutiao.com/account_login/", param, header);
-/*           System.out.println(res);
-            Scanner scanner = new Scanner(System.in);
-            String code = scanner.nextLine();
-            param.put("captcha",code);
-            res = HttpUtils.httpPostParamRequest("https://sso.toutiao.com/account_login/",param,header);
-            System.out.println(res);*/
             ObjectMapper mapper = new ObjectMapper();
             mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
             JsonNode jsonNode = mapper.readTree(res);
@@ -96,13 +81,10 @@ public class Test {
                 param.put("captcha", resp.pred_resl);
                 orderId = resp.req_id;
                 res = HttpUtils.httpPostParamRequest("https://sso.toutiao.com/account_login/", param, header);
-                System.out.println(res);
                 jsonNode = mapper.readTree(res);
                 errorCode = jsonNode.get("error_code").asInt();
             }
             if (errorCode == 0) {
-//                String redirectUrl = jsonNode.get("redirect_url").asText();
-//                webDriver.get(redirectUrl);
                 String csrftoken = "";
                 List<org.apache.http.cookie.Cookie> cookies = HttpUtils.COOKIESTORE.getCookies();
                 for (org.apache.http.cookie.Cookie ck : cookies) {
@@ -126,22 +108,15 @@ public class Test {
                 param2.put("campaign_type", 1);
                 param2.put("budget", param3);
 
-//                webDriver.get("https://ad.toutiao.com/pages/campaign/create.html");
                 for (Cookie cookie : webDriver.manage().getCookies()) {
                     if ("csrftoken".equals(cookie.getName())) {
                         csrftoken = cookie.getValue();
                     }
                     BasicClientCookie ck = new BasicClientCookie(cookie.getName(), cookie.getValue());
-//                    if (cookie.getDomain().startsWith(".")){
-//                        ck.setDomain(URLDecoder.decode(cookie.getDomain().substring(1),"utf-8"));
-//                    }else {
-//                        ck.setDomain(URLDecoder.decode(cookie.getDomain(),"utf-8"));
-//                    }
                     ck.setDomain("ad.oceanengine.com");
                     ck.setExpiryDate(cookie.getExpiry());
                     ck.setPath(cookie.getPath());
                     HttpUtils.COOKIESTORE.addCookie(ck);
-                    System.out.println(cookie.getName() + "," + cookie.getValue() + "," + cookie.getDomain());
                 }
                 header.put("Accept", "application/json, text/javascript, */*; q=0.01");
                 header.put("Connection", "keep-alive");
@@ -153,14 +128,12 @@ public class Test {
                 header.put("Referer", "https://ad.oceanengine.com/pages/campaign/create.html");
                 // 创建广告组返回信息
                 res = HttpUtils.httpPostRequest("https://ad.oceanengine.com/overture/campaign/create/", param2, header);
-                System.out.println(res);
                 JsonNode node = mapper.readTree(res);
                 //{"status": "fail", "msg": "\u5e7f\u544a\u7ec4\u4e0d\u80fd\u91cd\u590d", "type": "form_error", "name": "campaign_name"}
                 //广告组id
                 String campaignId = node.get("data").get("campaign_id").asText();
                 String url2 = "https://ad.oceanengine.com/pages/ad/create.html?campaign_id=" + campaignId + "&landing_type=3&temp_id=ADvQb";
                 webDriver.get(url2);
-//                webDriver.get("https://ad.toutiao.com/agent/get_agency/?advertiser_id=1634948959249411");
                 header.put("Referer", url2);
                 for (Cookie cookie : webDriver.manage().getCookies()) {
                     BasicClientCookie ck = new BasicClientCookie(cookie.getName(), cookie.getValue());
@@ -168,7 +141,6 @@ public class Test {
                     ck.setExpiryDate(cookie.getExpiry());
                     ck.setPath(cookie.getPath());
                     HttpUtils.COOKIESTORE.addCookie(ck);
-                    System.out.println(cookie.getName() + "," + cookie.getValue() + "," + cookie.getDomain());
                 }
                 String siteStr = HttpUtils.httpGetRequest("https://ad.oceanengine.com/overture/api/adv_site/get_site_list/?_=" + String.valueOf(System.currentTimeMillis()));
                 String convStr = HttpUtils.httpGetRequest("https://ad.oceanengine.com/overture/api/get_tetris_action/?external_url=&type=external&pricing=9&landing_type=3&_=" + String.valueOf(System.currentTimeMillis()));
@@ -179,9 +151,6 @@ public class Test {
                 param4.put("location_type", 4);
                 param4.put("aweme_account_fans", 0);
                 String tokenStr = HttpUtils.httpPostRequest("https://ad.oceanengine.com/api/v1/hl/ad/audience/estimate/", param4, header);
-                System.out.println(siteStr);
-                System.out.println(convStr);
-                System.out.println(tokenStr);
                 JsonNode tokenNode = mapper.readTree(tokenStr);
                 Map<String, Object> param5 = new HashMap<String, Object>();
                 // 投放范围
@@ -251,7 +220,6 @@ public class Test {
                 param5.put("name", "自动创建测试4");
                 param5.put("campaign_id", campaignId);
                 String createResult = HttpUtils.httpPostRequest("https://ad.oceanengine.com/overture/ad/create/", param5, header);
-                System.out.println(createResult);
             }
 //            webDriver.close();