Bladeren bron

全改成userId

linjianpeng 1 maand geleden
bovenliggende
commit
fe90668e68

+ 1 - 1
module_base/src/main/java/com/yc/module_base/view/userinfo/UserInfoActivity.kt

@@ -297,7 +297,7 @@ class UserInfoActivity : BaseActivity<UserInfoVM>() {
             tvFollowCount.text = NumString.convertIntLive(user.followNum?.toLong() ?: 0L)
             tvFansCount.text = NumString.convertIntLive(user.fanNum?.toLong() ?: 0L)
             userCopy.setOnClickListener {
-                if (ComponentUtil.copyStr(this, user.prettyId.toString())) {
+                if (ComponentUtil.copyStr(this, user.userId.toString())) {
                     toast("复制成功")
                 }
             }

+ 1 - 1
module_me/src/main/java/com/mita/module_me/view/MeFragment.kt

@@ -149,7 +149,7 @@ class MeFragment : BaseFragment<MeViewModel>() {
             ivFrame.toGone()
         }
         userCopy.setOnClickListener {
-            if (ComponentUtil.copyStr(context, user.prettyId.toString())) {
+            if (ComponentUtil.copyStr(context, user.userId.toString())) {
                 toast("复制成功")
 //                    ThirdAppNavigator.startWeChatApp(context)
             }

+ 1 - 1
module_me/src/main/java/com/mita/module_me/view/UserInfoView.kt

@@ -87,7 +87,7 @@ class UserInfoView @JvmOverloads constructor(
             ivFrame.toGone()
         }
         userCopy.setOnClickListener {
-            if (ComponentUtil.copyStr(context, user.prettyId.toString())) {
+            if (ComponentUtil.copyStr(context, user.userId.toString())) {
                 toast("复制成功")
 //                    ThirdAppNavigator.startWeChatApp(context)
             }