修改头像昵称获取方式,修改接口地址

This commit is contained in:
2025-09-03 11:41:28 +08:00
parent 288728f142
commit a950504d6f
2 changed files with 4 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ object ConstVars {
// api 地址 // api 地址
// const val BASE_SERVER = "http://192.168.31.131:8088" // const val BASE_SERVER = "http://192.168.31.131:8088"
// const val BASE_SERVER = "http://192.168.142.141:8088" // const val BASE_SERVER = "http://192.168.142.141:8088"
// const val BASE_SERVER = "https://8.137.22.101:8088" const val BASE_SERVER = "http://192.168.0.228:8088"
const val BASE_SERVER = "https://rider-pro.aiosman.com/beta_api" // const val BASE_SERVER = "https://rider-pro.aiosman.com/beta_api"
const val MOMENT_LIKE_CHANNEL_ID = "moment_like" const val MOMENT_LIKE_CHANNEL_ID = "moment_like"
const val MOMENT_LIKE_CHANNEL_NAME = "Moment Like" const val MOMENT_LIKE_CHANNEL_NAME = "Moment Like"

View File

@@ -285,7 +285,7 @@ fun LikeCommentNoticeItem(
) { ) {
CustomAsyncImage( CustomAsyncImage(
context = context, context = context,
imageUrl = MyProfileViewModel.avatar, imageUrl = AppState.profile?.avatar ?: "",
contentDescription = "Comment Profile Picture", contentDescription = "Comment Profile Picture",
modifier = Modifier modifier = Modifier
.size(24.dp) .size(24.dp)
@@ -298,7 +298,7 @@ fun LikeCommentNoticeItem(
modifier = Modifier.weight(1f) modifier = Modifier.weight(1f)
) { ) {
Text( Text(
text = MyProfileViewModel.nickName, text = AppState.profile?.nickName ?: "",
fontWeight = FontWeight.W600, fontWeight = FontWeight.W600,
fontSize = 14.sp, fontSize = 14.sp,
color = AppColors.text color = AppColors.text