李学松 2 лет назад
Родитель
Сommit
af4a4f1df3

+ 6 - 6
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/controller/GigThirdApiController.java

@@ -23,7 +23,7 @@ import com.qunzhixinxi.hnqz.admin.service.XinbadaInputRecordService;
 import com.qunzhixinxi.hnqz.admin.service.ZhongyiyunInputRecordService;
 import com.qunzhixinxi.hnqz.admin.service.gig.GigThirdApiService;
 import com.qunzhixinxi.hnqz.admin.service.gig.OladingInputRecordService;
-import com.qunzhixinxi.hnqz.admin.util.ZhongyiyunUtil;
+import com.qunzhixinxi.hnqz.admin.util.ZhongyiyunUtils;
 import com.qunzhixinxi.hnqz.common.log.annotation.SysLog;
 import com.qunzhixinxi.hnqz.common.security.annotation.Inner;
 import lombok.AllArgsConstructor;
@@ -122,11 +122,11 @@ public class GigThirdApiController {
 			String desKey = StrUtil.split(deptSub.getAppId(), "|").get(2);
 
 			newBodyJson = BeanUtil.copyProperties(bodyJson, JSONObject.class);
-			newBodyJson.set("bankCard", ZhongyiyunUtil.decrypt(bankCard, desKey));
-			newBodyJson.set("idCard", ZhongyiyunUtil.decrypt(idCard, desKey));
-			newBodyJson.set("mobile", ZhongyiyunUtil.decrypt(mobile, desKey));
-			newBodyJson.set("name", ZhongyiyunUtil.decrypt(name, desKey));
-			newBodyJson.set("remark3", ZhongyiyunUtil.decrypt(remark3, desKey));
+			newBodyJson.set("bankCard", ZhongyiyunUtils.decrypt(bankCard, desKey));
+			newBodyJson.set("idCard", ZhongyiyunUtils.decrypt(idCard, desKey));
+			newBodyJson.set("mobile", ZhongyiyunUtils.decrypt(mobile, desKey));
+			newBodyJson.set("name", ZhongyiyunUtils.decrypt(name, desKey));
+			newBodyJson.set("remark3", ZhongyiyunUtils.decrypt(remark3, desKey));
 		} catch (Exception e) {
 			log.error("众蚁云签约回调参数异常", e);
 			return "fail";

+ 8 - 9
hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/util/ZhongyiyunUtil.java → hnqz-upms/hnqz-upms-biz/src/main/java/com/qunzhixinxi/hnqz/admin/util/ZhongyiyunUtils.java

@@ -47,7 +47,6 @@ import org.apache.http.client.methods.HttpPost;
 import org.apache.http.client.utils.DateUtils;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.http.message.BasicNameValuePair;
-import org.junit.Test;
 import org.springframework.util.StringUtils;
 
 import com.alibaba.fastjson.JSON;
@@ -62,7 +61,7 @@ import com.alibaba.fastjson.JSONObject;
  * @Date: 2021/4/22 14:12
  * @Description:
  */
-public class ZhongyiyunUtil {
+public class ZhongyiyunUtils {
 
     public static String version = "1";
 
@@ -195,7 +194,7 @@ public class ZhongyiyunUtil {
      * @Date 14:10 2021/4/25
      * @Param
      **/
-    @Test
+//    @Test
     public static void sohoSign() throws Exception {
         String reqId = DateUtils.formatDate(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();
@@ -241,7 +240,7 @@ public class ZhongyiyunUtil {
      * @Date 14:10 2021/4/25
      * @Param
      **/
-    @Test
+//    @Test
     public static void rescindSoho() throws Exception {
         String reqId = DateUtils.formatDate(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();
@@ -341,7 +340,7 @@ public class ZhongyiyunUtil {
      * @Date 14:10 2021/4/25
      * @Param
      **/
-    @Test
+//    @Test
     public static void openMerchantV2() throws Exception {
         String reqId = DateUtils.formatDate(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();
@@ -395,7 +394,7 @@ public class ZhongyiyunUtil {
      * @Date 14:10 2021/4/25
      * @Param
      **/
-    @Test
+//    @Test
     public static void supplementInfo() throws Exception {
         String reqId = DateUtils.formatDate(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();
@@ -475,7 +474,7 @@ public class ZhongyiyunUtil {
      * @Date 14:10 2021/4/25
      * @Param
      **/
-    @Test
+//    @Test
     public static void openMerchant() throws Exception {
         String reqId = DateUtils.formatDate(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();
@@ -571,7 +570,7 @@ public class ZhongyiyunUtil {
     /**
      * Soho解约,仅限特定客户业务对接
      **/
-    @Test
+//    @Test
     public static void terminateContract() throws Exception {
         String reqId = DateUtil.format(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();
@@ -1024,7 +1023,7 @@ public class ZhongyiyunUtil {
     /**
      * 特定客户代付对接
      **/
-    @Test
+//    @Test
     public static void customPay() throws Exception {
         String reqId = DateUtil.format(new Date(), "yyyyMMddHHmmss");
         Map<String, Object> params = new HashMap<>();