From 7808c86a711395dc1e76ffc684fbd8543dfc9a2f Mon Sep 17 00:00:00 2001
From: WeiRan <2392355487@qq.com>
Date: Mon, 9 Sep 2024 00:16:52 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=8E=92=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../muyu/cloud/background/domin/realname/RealNameResp.java | 2 ++
cloud-background-server/pom.xml | 6 ------
.../cloud/background/service/impl/RealNameServiceImpl.java | 4 ++--
3 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/cloud-background-common/src/main/java/com/muyu/cloud/background/domin/realname/RealNameResp.java b/cloud-background-common/src/main/java/com/muyu/cloud/background/domin/realname/RealNameResp.java
index 62a5f59..995911d 100644
--- a/cloud-background-common/src/main/java/com/muyu/cloud/background/domin/realname/RealNameResp.java
+++ b/cloud-background-common/src/main/java/com/muyu/cloud/background/domin/realname/RealNameResp.java
@@ -1,5 +1,6 @@
package com.muyu.cloud.background.domin.realname;
+import com.alibaba.fastjson2.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@@ -20,5 +21,6 @@ public class RealNameResp {
private String code;
+
private String msg;
}
diff --git a/cloud-background-server/pom.xml b/cloud-background-server/pom.xml
index 50bc7a0..f6907d2 100644
--- a/cloud-background-server/pom.xml
+++ b/cloud-background-server/pom.xml
@@ -36,12 +36,6 @@
1.2
-
- net.sf.json-lib
- json-lib
- 2.4
- jdk13
-
com.muyu
diff --git a/cloud-background-server/src/main/java/com/muyu/cloud/background/service/impl/RealNameServiceImpl.java b/cloud-background-server/src/main/java/com/muyu/cloud/background/service/impl/RealNameServiceImpl.java
index f806049..5f930c5 100644
--- a/cloud-background-server/src/main/java/com/muyu/cloud/background/service/impl/RealNameServiceImpl.java
+++ b/cloud-background-server/src/main/java/com/muyu/cloud/background/service/impl/RealNameServiceImpl.java
@@ -58,9 +58,9 @@ public class RealNameServiceImpl implements BasicApi{
//主从辅
//假设聚合是主,阿里是从
RealNameResp realNameResp = juHeRemoteService.realName(realNameReq);
- if (!realNameResp.getCode().equals(0) || !realNameResp.getMsg().equals("成功")){
+ if (!realNameResp.getCode().equals(0) && !realNameResp.getMsg().equals("成功")){
RealNameResp realNameResp1 = aliRemoteService.realName(realNameReq);
- if (!realNameResp1.getCode().equals(1) || !realNameResp1.getMsg().equals("认证成功")){
+ if (!realNameResp1.getCode().equals(1) && !realNameResp1.getMsg().equals("认证成功")){
throw new RuntimeException("线路正在抢修中!!!");
}
return realNameResp1;