浏览代码

fix: 注释远程调用与alibaba.csb.sdk内容

zhangying 1 周之前
父节点
当前提交
8ca7fa9f8f

+ 3 - 3
zjrs-service-backend/src/main/java/com/zjrs/ggfw/dzsbk/util/SignUtils.java

@@ -1,6 +1,6 @@
 package com.zjrs.ggfw.dzsbk.util;
 
-import com.alibaba.csb.sdk.security.SignUtil;
+//import com.alibaba.csb.sdk.security.SignUtil;
 import com.alibaba.fastjson.JSON;
 import com.zjrs.ggfw.dzsbk.dto.PropertyDTO;
 import com.zjrs.ggfw.dzsbk.dto.SignDTO;
@@ -39,8 +39,8 @@ public class SignUtils {
         result.put("security", AESUtils.encrypt(bodyJson, propertyDTO.getDk()));
         
         //签名
-        String sign = SignUtil.sign(result, propertyDTO.getSk());
-        result.put("_api_signature", URLEncoder.encode(sign, CHARSET_UTF_8));
+//        String sign = SignUtil.sign(result, propertyDTO.getSk());
+//        result.put("_api_signature", URLEncoder.encode(sign, CHARSET_UTF_8));
         
         // 签名之后对security和returnUrl进行URLEncoder,注意,一定要在签名后再URLEncoder
         result.put("security", URLEncoder.encode(result.get("security"), CHARSET_UTF_8));

+ 26 - 25
zjrs-service-backend/src/main/java/com/zjrs/ggfw/dzsbk/util/signInfoUtils.java

@@ -1,9 +1,9 @@
 package com.zjrs.ggfw.dzsbk.util;
 
-import com.alibaba.csb.sdk.ContentBody;
-import com.alibaba.csb.sdk.HttpCaller;
-import com.alibaba.csb.sdk.HttpCallerException;
-import com.alibaba.csb.sdk.HttpParameters;
+//import com.alibaba.csb.sdk.ContentBody;
+//import com.alibaba.csb.sdk.HttpCaller;
+//import com.alibaba.csb.sdk.HttpCallerException;
+//import com.alibaba.csb.sdk.HttpParameters;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -11,26 +11,27 @@ public class signInfoUtils {
 	private static final Logger logger = LoggerFactory.getLogger(signInfoUtils.class);
 	
 	public static String getSignInfo(String signInfoUrl,String accessKey,String securityKey,String jsonData){
-		HttpParameters.Builder builder = HttpParameters.newBuilder();
-		builder.requestURL(signInfoUrl) // 设置请求的URL
-				.api("v2_sign_valid") // 设置服务名
-				.version("1.0.0") // 设置版本号
-				.method("post") // 设置调用方式, get/post
-				.accessKey(accessKey)
-				.secretKey(securityKey); // 设置accessKey 和 设置secretKey
-		
-		// 设置请求参数(json格式)
-		ContentBody cb = new ContentBody(jsonData);
-		builder.contentBody(cb);
-		
-		//进行调用 返回结果(json格式)
-		String result = null;
-		try {
-			result = HttpCaller.invoke(builder.build());
-			logger.info("=====sign_info="+result);
-		} catch (HttpCallerException e) {
-			logger.info("领卡查询接口异常:",e);
-		}
-		return result;
+//		HttpParameters.Builder builder = HttpParameters.newBuilder();
+//		builder.requestURL(signInfoUrl) // 设置请求的URL
+//				.api("v2_sign_valid") // 设置服务名
+//				.version("1.0.0") // 设置版本号
+//				.method("post") // 设置调用方式, get/post
+//				.accessKey(accessKey)
+//				.secretKey(securityKey); // 设置accessKey 和 设置secretKey
+//
+//		// 设置请求参数(json格式)
+//		ContentBody cb = new ContentBody(jsonData);
+//		builder.contentBody(cb);
+//
+//		//进行调用 返回结果(json格式)
+//		String result = null;
+//		try {
+//			result = HttpCaller.invoke(builder.build());
+//			logger.info("=====sign_info="+result);
+//		} catch (HttpCallerException e) {
+//			logger.info("领卡查询接口异常:",e);
+//		}
+//		return result;
+        return null;
 	}
 }

+ 2 - 2
zjrs-service-backend/src/main/java/com/zjrs/ggfw/rlzysc/bpo/JbxxglFeignClientBPO.java

@@ -5,7 +5,7 @@ import org.mohrss.leaf.core.framework.web.controller.AjaxResponse;
 import com.zjrs.ggfw.rlzysc.dto.AreaDTO;
 import com.zjrs.ggfw.rlzysc.dto.ShUDTO;
 import com.zjrs.ggfw.utils.FeignConfig;
-import org.springframework.cloud.openfeign.FeignClient;
+//import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestBody;
 import jakarta.validation.Valid;
 
 @Service
-@FeignClient(name="ZJRS-ZWNW-SERVICE",configuration= FeignConfig.class)
+//@FeignClient(name="ZJRS-ZWNW-SERVICE",configuration= FeignConfig.class)
 public interface JbxxglFeignClientBPO {
     @PostMapping(value = "/api/jbxxgl/jbxxglcommon/getXzqhTree")
     public AjaxResponse getXzqhTree(@RequestBody AreaDTO dto);

+ 2 - 2
zjrs-service-backend/src/main/java/com/zjrs/ggfw/rlzysc/bpo/WjfwFeignClientBPO.java

@@ -2,14 +2,14 @@ package com.zjrs.ggfw.rlzysc.bpo;
 
 import com.zjrs.ggfw.rlzysc.dto.FileDTO;
 import com.zjrs.ggfw.utils.FeignConfig;
-import org.springframework.cloud.openfeign.FeignClient;
+//import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.http.ResponseEntity;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
 @Service
-@FeignClient(name="ZJRS-WJFW-SERVICE",configuration= FeignConfig.class)
+//@FeignClient(name="ZJRS-WJFW-SERVICE",configuration= FeignConfig.class)
 public interface WjfwFeignClientBPO {
 
     @PostMapping(value = "/api/store/getObject")

+ 2 - 2
zjrs-service-backend/src/main/java/com/zjrs/zwnw/rlzysc/bpo/UserFeignClientBPO.java

@@ -2,13 +2,13 @@ package com.zjrs.zwnw.rlzysc.bpo;
 
 import org.mohrss.leaf.core.framework.web.controller.AjaxResponse;
 import com.zjrs.zwnw.rlzysc.dto.XxglDTO;
-import org.springframework.cloud.openfeign.FeignClient;
+//import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
 @Service
-@FeignClient("ZJRS-GGFW-SERVICE")
+//@FeignClient("ZJRS-GGFW-SERVICE")
 public interface UserFeignClientBPO {
 
     @PostMapping("/api/portal/user/saveNews")

+ 2 - 2
zjrs-service-backend/src/main/java/com/zjrs/zwnw/zj/bpo/WjfwFeignClientBPO.java

@@ -2,7 +2,7 @@ package com.zjrs.zwnw.zj.bpo;
 
 import org.mohrss.leaf.core.framework.web.controller.AjaxResponse;
 import com.zjrs.zwnw.zj.util.FeignConfig;
-import org.springframework.cloud.openfeign.FeignClient;
+//import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.http.MediaType;
 import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestPart;
 import org.springframework.web.multipart.MultipartFile;
 
 @Service
-@FeignClient(name="ZJRS-WJFW-SERVICE",configuration= FeignConfig.class)
+//@FeignClient(name="ZJRS-WJFW-SERVICE",configuration= FeignConfig.class)
 public interface WjfwFeignClientBPO {
     @PostMapping(value = "/api/store/putObject?business=business1",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
     public AjaxResponse putObject(@RequestPart("file") MultipartFile file);