fix bugs.3
This commit is contained in:
@@ -508,14 +508,14 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
if (userInfo != null) {
|
||||
mBinding.tvGh.setVisibility(VISIBLE);
|
||||
mBinding.tvJoinGuild.setVisibility(GONE);
|
||||
if (userInfo.getGuild().isEmpty()) {
|
||||
if (userInfo.getGuild_name() == null ||userInfo.getGuild_name().isEmpty()) {
|
||||
mBinding.tvGh.setText("所属公会:无");
|
||||
} else {
|
||||
if (userInfo.getUser_id() != SpUtil.getUserId() && !userInfo.getGuild().equals(SpUtil.getUserInfo().getGuild())) {
|
||||
if (userInfo.getUser_id() != SpUtil.getUserId() || (userInfo.getMe_guild_name() != null && !userInfo.getMe_guild_name().isEmpty())) {
|
||||
mBinding.tvJoinGuild.setVisibility(VISIBLE);
|
||||
}
|
||||
|
||||
mBinding.tvGh.setText("所属公会:" + userInfo.getGuild());
|
||||
mBinding.tvGh.setText("所属公会:" + userInfo.getGuild_name());
|
||||
}
|
||||
} else {
|
||||
mBinding.tvGh.setVisibility(GONE);
|
||||
@@ -526,7 +526,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
mBinding.tvJoinGuild.setOnClickListener(v -> {
|
||||
//跳转加入公会
|
||||
Intent intent = new Intent(getContext(), WebViewActivity.class);
|
||||
intent.putExtra("url", String.format(WebUrlConstants.INSTANCE.getWEB_GUILD_URL(), SpUtil.getToken()));
|
||||
intent.putExtra("url", String.format(WebUrlConstants.INSTANCE.getWEB_GUILD_URL(), SpUtil.getToken(), userInfo.getGuild_id()));
|
||||
intent.putExtra("title", "公会");
|
||||
startActivity(intent);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user