修复【钻石不够的情况下,也成功发起红包】
This commit is contained in:
parent
c139b03417
commit
60c14f720d
@ -1620,7 +1620,11 @@ public class LiveNetManager {
|
|||||||
@Override
|
@Override
|
||||||
public void accept(ResponseModel<Object> objectResponseModel) throws Exception {
|
public void accept(ResponseModel<Object> objectResponseModel) throws Exception {
|
||||||
if (callback != null) {
|
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<Throwable>() {
|
}, new Consumer<Throwable>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user