文字
This commit is contained in:
parent
d39facbcc7
commit
f2b2c39168
@ -618,7 +618,7 @@ public class CommonHttpUtil {
|
|||||||
* 动态-不感兴趣
|
* 动态-不感兴趣
|
||||||
*/
|
*/
|
||||||
public static void noInterest(String uid, HttpCallback callback) {
|
public static void noInterest(String uid, HttpCallback callback) {
|
||||||
HttpClient.getInstance().get("User.setBlack", "User.setBlack")
|
HttpClient.getInstance().get("Pdluser.setBlack", "User.setBlack")
|
||||||
.params("touid", uid)
|
.params("touid", uid)
|
||||||
.execute(callback);
|
.execute(callback);
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,6 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="real_person">真人认证</string>
|
<string name="real_person">真人认证</string>
|
||||||
<string name="trade_union">工会</string>
|
<string name="trade_union">工会</string>
|
||||||
|
<string name="set_back">已拉黑,无法查看</string>
|
||||||
|
<string name="cancel_back">取消黑名单</string>
|
||||||
</resources>
|
</resources>
|
@ -1466,4 +1466,6 @@
|
|||||||
<string name="trade_union">工会</string>
|
<string name="trade_union">工会</string>
|
||||||
<string name="activity_msg_chat_top_status_online">在線</string>
|
<string name="activity_msg_chat_top_status_online">在線</string>
|
||||||
<string name="activity_msg_chat_top_status_offline">離線</string>
|
<string name="activity_msg_chat_top_status_offline">離線</string>
|
||||||
|
<string name="set_back">已拉黑,无法查看</string>
|
||||||
|
<string name="cancel_back">取消黑名单</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1466,4 +1466,6 @@
|
|||||||
|
|
||||||
<string name="activity_msg_chat_top_status_online">在線</string>
|
<string name="activity_msg_chat_top_status_online">在線</string>
|
||||||
<string name="activity_msg_chat_top_status_offline">離線</string>
|
<string name="activity_msg_chat_top_status_offline">離線</string>
|
||||||
|
<string name="set_back">已拉黑,无法查看</string>
|
||||||
|
<string name="cancel_back">取消黑名单</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1463,4 +1463,6 @@
|
|||||||
<string name="activity_msg_chat_top_status_online">在線</string>
|
<string name="activity_msg_chat_top_status_online">在線</string>
|
||||||
<string name="activity_msg_chat_top_status_offline">離線</string>
|
<string name="activity_msg_chat_top_status_offline">離線</string>
|
||||||
<string name="praise">獲讚</string>
|
<string name="praise">獲讚</string>
|
||||||
|
<string name="set_back">已拉黑,无法查看</string>
|
||||||
|
<string name="cancel_back">取消黑名单</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1485,6 +1485,8 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="real_person">真人认证</string>
|
<string name="real_person">真人认证</string>
|
||||||
<string name="trade_union">工会</string>
|
<string name="trade_union">工会</string>
|
||||||
<string name="praise">Like</string>
|
<string name="praise">Like</string>
|
||||||
|
<string name="set_back">已拉黑,无法查看</string>
|
||||||
|
<string name="cancel_back">取消黑名单</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -28,6 +28,7 @@ import androidx.viewpager.widget.ViewPager;
|
|||||||
|
|
||||||
import com.alibaba.android.arouter.facade.annotation.Route;
|
import com.alibaba.android.arouter.facade.annotation.Route;
|
||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.makeramen.roundedimageview.RoundedImageView;
|
import com.makeramen.roundedimageview.RoundedImageView;
|
||||||
import com.ms.banner.Banner;
|
import com.ms.banner.Banner;
|
||||||
@ -198,11 +199,6 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
@SuppressLint({"SetTextI18n", "UseCompatLoadingForDrawables"})
|
@SuppressLint({"SetTextI18n", "UseCompatLoadingForDrawables"})
|
||||||
private void initData(HomeUserInfoBean userInfoBean) {
|
private void initData(HomeUserInfoBean userInfoBean) {
|
||||||
userInfo = userInfoBean;
|
userInfo = userInfoBean;
|
||||||
if (!userInfo.getCheckBlack().get(0).getU2t().equals("0")) {
|
|
||||||
ToastUtil.show("已拉黑,无法查看");
|
|
||||||
finish();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!StringUtil.isEmpty(userInfo.getUserHomeTopInfo().getUser_president_name())) {
|
if (!StringUtil.isEmpty(userInfo.getUserHomeTopInfo().getUser_president_name())) {
|
||||||
userPresidentLayout.setVisibility(View.VISIBLE);
|
userPresidentLayout.setVisibility(View.VISIBLE);
|
||||||
userPresidentName.setText(userInfo.getUserHomeTopInfo().getUser_president_name());
|
userPresidentName.setText(userInfo.getUserHomeTopInfo().getUser_president_name());
|
||||||
@ -551,10 +547,11 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
findViewById(R.id.setting).setOnClickListener(new View.OnClickListener() {
|
findViewById(R.id.setting).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
String temp = userInfo.getCheckBlack().get(0).getU2t().equals("0") ? getResources().getString(R.string.black_add) : getResources().getString(com.yunbao.main.R.string.cancel_back);
|
||||||
SparseArray<String> array = new SparseArray<>();
|
SparseArray<String> array = new SparseArray<>();
|
||||||
array.append(1, "不感興趣");
|
array.append(1, "不感興趣");
|
||||||
array.append(0, getResources().getString(R.string.report));
|
array.append(0, getResources().getString(R.string.report));
|
||||||
array.append(2, getResources().getString(R.string.black_add));
|
array.append(2, temp);
|
||||||
DialogUitl.showStringArrayDialog(UserHomeActivity.this, array, new DialogUitl.StringArrayDialogCallback() {
|
DialogUitl.showStringArrayDialog(UserHomeActivity.this, array, new DialogUitl.StringArrayDialogCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onItemClick(String text, int tag) {
|
public void onItemClick(String text, int tag) {
|
||||||
@ -564,6 +561,10 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
CommonHttpUtil.noInterest(String.valueOf(userInfo.getUserHomeTopInfo().getUser_id()), new com.yunbao.common.http.HttpCallback() {
|
CommonHttpUtil.noInterest(String.valueOf(userInfo.getUserHomeTopInfo().getUser_id()), new com.yunbao.common.http.HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0 && info != null) {
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(info[0]);
|
||||||
|
userInfo.getCheckBlack().get(0).setU2t(jsonObject.getString("isblack"));
|
||||||
|
}
|
||||||
ToastUtil.show(msg);
|
ToastUtil.show(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -571,6 +572,10 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
CommonHttpUtil.noInterest(String.valueOf(userInfo.getUserHomeTopInfo().getUser_id()), new com.yunbao.common.http.HttpCallback() {
|
CommonHttpUtil.noInterest(String.valueOf(userInfo.getUserHomeTopInfo().getUser_id()), new com.yunbao.common.http.HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
if (code == 0 && info != null) {
|
||||||
|
JSONObject jsonObject = JSONObject.parseObject(info[0]);
|
||||||
|
userInfo.getCheckBlack().get(0).setU2t(jsonObject.getString("isblack"));
|
||||||
|
}
|
||||||
ToastUtil.show(msg);
|
ToastUtil.show(msg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user