删除排序

master
WeiRan 2024-09-09 00:16:52 +08:00
parent 6e6fd31090
commit 7808c86a71
3 changed files with 4 additions and 8 deletions

View File

@ -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;
}

View File

@ -36,12 +36,6 @@
<version>1.2</version>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk13</classifier>
</dependency>
<dependency>
<groupId>com.muyu</groupId>

View File

@ -58,9 +58,9 @@ public class RealNameServiceImpl implements BasicApi<RealNameReq, RealNameResp>{
//主从辅
//假设聚合是主,阿里是从
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;