| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -8,11 +8,20 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					package com.epmet; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.alibaba.fastjson.JSON; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.scan.param.TextScanParamDTO; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.scan.param.TextTaskDTO; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.scan.result.SyncScanResult; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.utils.Result; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import com.epmet.commons.tools.utils.ScanContentUtils; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.boot.SpringApplication; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.boot.autoconfigure.SpringBootApplication; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.cloud.client.discovery.EnableDiscoveryClient; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import org.springframework.cloud.openfeign.EnableFeignClients; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import java.util.ArrayList; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					import java.util.List; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					/** | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 * 模块 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					 * | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -26,6 +35,37 @@ public class ResiGroupApplication { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public static void main(String[] args) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        SpringApplication.run(ResiGroupApplication.class, args); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        System.out.println("===============started======================"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        testTextSyncScan(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        System.out.println("===============end======================"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    public static void testTextSyncScan(){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        String url = "https://epmet-dev.elinkservice.cn/api/epmetscan/api/textSyncScan"; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        TextTaskDTO p = new TextTaskDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        p.setDataId("1"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        p.setContent("开着房车去旅行,已经成了不少人出游的新方式。临近“五一”,房车租赁市场持续火爆,尽管价格比平时贵了不少,可仍一车难求。\n" + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                "\n" + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                "“临近‘五一’,想开一辆房车拉着一家人去草原旅游,没想到一周前就已经租不到车了。”读者刘先生说,最近一段时间,他总是在一些短视频平台上看到有人开着房车出门旅行的视频。眼下春暖花开,正是出游的好时节,开上一辆房车,不仅节省了住宿费,还能体验一种不同的出行方式。不过,这周起刘先生搜索相关的房车租赁信息时,却发现不少房车租赁公司已经是一车难求了。\n" + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                "在某房车租车软件上记者发现,位于房山和顺义的两个取车还车点,五一期间的全部车型已经被租赁一空。而在另一家房车租赁公司的价格目录里,明确标注了租赁价格分为平时价和节假日价,后者是前者的1.2倍。\n" + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                "\n" + | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                "“‘五一’期间,北京的房车租赁情况很紧张,目前只剩一台东风了,你可以考虑一下。”一家房车租赁公司的工作人员介绍,他们公司规定“五一”期间租赁时间为五天起租,仅剩的东风车型每天的租金在1278元。“‘五一’期间的价格会比平时高一些,我建议您在5月6日之后租,一方面没有租赁时长的限制,另一方面租金会便宜不少,每天也就900多元。"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        List<TextTaskDTO> list = new ArrayList<>(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        list.add(p); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        TextScanParamDTO param = new TextScanParamDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        param.setTasks(list); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<SyncScanResult> imgSyncScanResult = ScanContentUtils.textSyncScan(url, param); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        System.out.println("==================="+JSON.toJSONString(imgSyncScanResult)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        SyncScanResult result = new SyncScanResult(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (imgSyncScanResult != null){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            SyncScanResult imgSyncScanResultData = imgSyncScanResult.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (imgSyncScanResult.success()&&imgSyncScanResultData.isAllPass()) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                result.setAllPass(imgSyncScanResultData.isAllPass()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                result.getSuccessDataIds().addAll(imgSyncScanResultData.getSuccessDataIds()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                result.getFailDataIds().addAll(imgSyncScanResultData.getFailDataIds()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                System.out.println("================"+JSON.toJSONString(result)); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					} | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |