隐身榜单的更改
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.yunbao.common.http.live;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.TextUtils;
|
||||
|
||||
import com.yunbao.common.R;
|
||||
import com.yunbao.common.bean.ActiveModel;
|
||||
import com.yunbao.common.bean.BaseModel;
|
||||
import com.yunbao.common.bean.LiveInfoModel;
|
||||
@@ -199,8 +201,13 @@ public class LiveNetManager {
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(listResponseModel -> {
|
||||
if (callback != null)
|
||||
callback.onSuccess(listResponseModel.getData().getInfo());
|
||||
if (callback != null) {
|
||||
if (TextUtils.equals(String.valueOf(listResponseModel.getData().getCode()), "0")) {
|
||||
callback.onSuccess(listResponseModel.getData().getInfo());
|
||||
} else {
|
||||
callback.onError(mContext.getString(R.string.try_again_later));
|
||||
}
|
||||
}
|
||||
}, throwable -> {
|
||||
if (callback != null)
|
||||
callback.onError(throwable.getMessage());
|
||||
|
||||
@@ -906,5 +906,6 @@
|
||||
<string name="tell_the_world">昭告天下!</string>
|
||||
<string name="better_emperor_hint">昭告天下! %s 向所有人推薦了主播 %s , 一眼萬年情之所鐘!</string>
|
||||
<string name="emperor_hint">昭告天下! %s 向所有人推薦了主播 %s , 灼灼風華一瞥驚鴻!</string>
|
||||
<string name="try_again_later">數據加載失敗,請稍後再試</string>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user