From 60c14f720dc06c649298d4dcd224024122c43c2b Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 4 Jul 2023 17:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E9=92=BB=E7=9F=B3?= =?UTF-8?q?=E4=B8=8D=E5=A4=9F=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=EF=BC=8C?= =?UTF-8?q?=E4=B9=9F=E6=88=90=E5=8A=9F=E5=8F=91=E8=B5=B7=E7=BA=A2=E5=8C=85?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/common/http/live/LiveNetManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java index 6d3920e39..d5573475b 100644 --- a/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java +++ b/common/src/main/java/com/yunbao/common/http/live/LiveNetManager.java @@ -1620,7 +1620,11 @@ public class LiveNetManager { @Override public void accept(ResponseModel objectResponseModel) throws Exception { if (callback != null) { - callback.onSuccess(objectResponseModel.getData().getMsg()); + if(objectResponseModel.getData().getCode()==0){ + callback.onSuccess(objectResponseModel.getData().getMsg()); + }else { + callback.onError(objectResponseModel.getData().getMsg()); + } } } }, new Consumer() {