搜索劫持判断逻辑修改

This commit is contained in:
memory
2022-12-20 18:24:20 +08:00
parent abe7190d96
commit eacec353c2

View File

@@ -508,7 +508,7 @@ public class SearchActivity extends BaseMvpActivity<ISearchView, SearchPresenter
AvRoomModel.get().hijackSearch(str)
.compose(bindToLifecycle())
.subscribe(hijackInfo -> {
if (hijackInfo == null || TextUtils.isEmpty(hijackInfo.getRoomUid()) || hijackInfo.getAwardVo() == null) {
if (hijackInfo == null || (TextUtils.isEmpty(hijackInfo.getRoomUid()) && hijackInfo.getAwardVo() == null)) {
starRealSearch(str);
} else {
long roomUid = JavaUtil.str2long(hijackInfo.getRoomUid());