|
@@ -98,30 +98,30 @@ public class FgtGameCenter extends BaseFragment {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if(ViewUtil.isVisible(fgt_gc_hb_500_yuan_drl)) {
|
|
|
|
|
- ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, false);
|
|
|
|
|
- CommonUtil.getInstance().callActionWithUserInfo(userEntity -> {
|
|
|
|
|
- String code = userEntity.getParent_code();
|
|
|
|
|
- if (TextUtils.isEmpty(code)) {
|
|
|
|
|
- code = userEntity.getInvitation_code();
|
|
|
|
|
- }
|
|
|
|
|
- SheepApp.getInstance().getNetComponent().getApiService().getUserIsShouYou(code)
|
|
|
|
|
- .subscribeOn(Schedulers.io())
|
|
|
|
|
- .observeOn(AndroidSchedulers.mainThread())
|
|
|
|
|
- .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
|
|
|
|
|
- @Override
|
|
|
|
|
- public void onNext(BaseMessage baseMessage) {
|
|
|
|
|
- boolean result = baseMessage.getData(Boolean.class);
|
|
|
|
|
- ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, !result);//不是会长或不是会长邀请的用户,才显示赏金任务入口
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @Override
|
|
|
|
|
- public void onError(BaseMessage baseMessage) {
|
|
|
|
|
- ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, false);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if(ViewUtil.isVisible(fgt_gc_hb_500_yuan_drl)) {
|
|
|
|
|
+// ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, false);
|
|
|
|
|
+// CommonUtil.getInstance().callActionWithUserInfo(userEntity -> {
|
|
|
|
|
+// String code = userEntity.getParent_code();
|
|
|
|
|
+// if (TextUtils.isEmpty(code)) {
|
|
|
|
|
+// code = userEntity.getInvitation_code();
|
|
|
|
|
+// }
|
|
|
|
|
+// SheepApp.getInstance().getNetComponent().getApiService().getUserIsShouYou(code)
|
|
|
|
|
+// .subscribeOn(Schedulers.io())
|
|
|
|
|
+// .observeOn(AndroidSchedulers.mainThread())
|
|
|
|
|
+// .subscribe(new SheepSubscriber<BaseMessage>(SheepApp.getInstance()) {
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public void onNext(BaseMessage baseMessage) {
|
|
|
|
|
+// boolean result = baseMessage.getData(Boolean.class);
|
|
|
|
|
+// ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, !result);//不是会长或不是会长邀请的用户,才显示赏金任务入口
|
|
|
|
|
+// }
|
|
|
|
|
+//
|
|
|
|
|
+// @Override
|
|
|
|
|
+// public void onError(BaseMessage baseMessage) {
|
|
|
|
|
+// ViewUtil.setVisibility(fgt_gc_hb_500_yuan_drl, false);
|
|
|
|
|
+// }
|
|
|
|
|
+// });
|
|
|
|
|
+// });
|
|
|
|
|
+// }
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|