| 
					
				 | 
			
			
				@@ -3,7 +3,10 @@ package com.ozs.controller.upload; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.alibaba.fastjson2.JSON; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.alibaba.fastjson2.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.common.annotation.SdkLog; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.core.redis.RedisCache; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.common.enums.BusinessType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.common.enums.BusinessTypeSdk; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.utils.ApiTokenUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.utils.HttpClientUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.utils.StringUtils; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -70,6 +73,7 @@ public class GeoHazardMonitorTokenController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/token") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @SdkLog(title = "获取web访问令牌", businessType = BusinessTypeSdk.TOKEN) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public String getWebToken(@RequestBody SvcAddress svcAddress) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 生成令牌 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,6 +128,7 @@ public class GeoHazardMonitorTokenController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/alarm") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Transactional 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @SdkLog(title = "报警信息数据传输", businessType = BusinessTypeSdk.ALARM) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public String alarm(@RequestParam("parameter") String parameter, HttpServletRequest request) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String token = apiTokenUtils.getGeoHazardMonitorToken(request); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         log.info("token:{}", token); 
			 |