房间 送礼接口 失败后 显示toast

This commit is contained in:
wzq
2023-10-09 16:09:16 +08:00
parent 61cafd8c8c
commit 6717f9aa69

View File

@@ -724,6 +724,7 @@ open class BaseRoomFragment<V : IBaseRoomView?, P : BaseRoomPresenter<V>?> :
}
.subscribe { _, throwable ->
if (throwable != null) {
toast(throwable.message)
callback.onFail()
} else {
callback.onSuccess()