修复【钻石不够的情况下,也成功发起红包】

This commit is contained in:
zlzw 2023-07-04 17:15:25 +08:00
parent c139b03417
commit 60c14f720d

View File

@ -1620,7 +1620,11 @@ public class LiveNetManager {
@Override
public void accept(ResponseModel<Object> 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<Throwable>() {