diff --git a/app/src/main/java/com/community/pocket/data/model/MyInfo.java b/app/src/main/java/com/community/pocket/data/model/MyInfo.java index 819e6b3..46bd307 100644 --- a/app/src/main/java/com/community/pocket/data/model/MyInfo.java +++ b/app/src/main/java/com/community/pocket/data/model/MyInfo.java @@ -10,9 +10,9 @@ public class MyInfo { //头像 private String headImg; //最近发帖数 - private Integer recentPosts; + private Integer posts; //最近访客数 - private Integer recentVisitors; + private Integer visitors; //手机号 private String mobie; //邮箱 @@ -45,20 +45,20 @@ public class MyInfo { this.headImg = headImg; } - public Integer getRecentPosts() { - return recentPosts; + public Integer getPosts() { + return posts; } - public void setRecentPosts(Integer recentPosts) { - this.recentPosts = recentPosts; + public void setPosts(Integer posts) { + this.posts = posts; } - public Integer getRecentVisitors() { - return recentVisitors; + public Integer getVisitors() { + return visitors; } - public void setRecentVisitors(Integer recentVisitors) { - this.recentVisitors = recentVisitors; + public void setVisitors(Integer visitors) { + this.visitors = visitors; } public String getMobie() { diff --git a/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java b/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java index 5f96e45..9c28da1 100644 --- a/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java +++ b/app/src/main/java/com/community/pocket/ui/main/ui/info/InfoFragment.java @@ -194,8 +194,8 @@ public class InfoFragment extends BaseFragment { private void loadInfo(MyInfo myInfo) { nickname.setText(getString(R.string.nick_name, myInfo.getUsername())); creditScore.setText(getString(R.string.credit_score, myInfo.getCreditScore())); - recentVisitors.setText(getString(R.string.recent_visitors, myInfo.getRecentVisitors())); - recentPosts.setText(getString(R.string.recent_posts, myInfo.getRecentPosts())); + recentVisitors.setText(getString(R.string.recent_visitors, myInfo.getVisitors())); + recentPosts.setText(getString(R.string.recent_posts, myInfo.getPosts())); mobie.setText(myInfo.getMobie()); email.setText(myInfo.getEmail()); diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 7db449c..b38ed3e 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -41,8 +41,8 @@ 修改密码 手机号绑定 邮箱绑定 - 最近发帖数 :%1$d - 最近访客数:%1$d + 总发帖数 :%1$d + 总访客数:%1$d 信用分活动记录 公告管理员:%1s 加载公告内容中。。。。