Explorar o código

上线测试更改BUG

wangwenju hai 23 horas
pai
achega
9cf83857ee

+ 2 - 1
LiangZhiYUMao/pages/activities/detail.vue

@@ -150,7 +150,7 @@
 				
 				// 如果是相对路径,添加协议和域名
 				if (cleanedUrl.startsWith('/')) {
-					return `http://115.190.125.125:9000${cleanedUrl}`
+					return `https://api.zhongruanke.cn/minio/${cleanedUrl}`
 				}
 				
 				// 如果已经是完整URL,直接返回
@@ -387,6 +387,7 @@
 		padding: 0 20rpx;
 		background-color: #E91E63;
 		z-index: 999;
+		padding-top: 40px;
 
 		.navbar-left,
 		.navbar-right {

+ 2 - 2
LiangZhiYUMao/pages/index/index.vue

@@ -810,9 +810,9 @@ async loadFunctionGridData() {
 				if (cleanedUrl.startsWith('/')) {
 					// 检查是否是完整的服务器路径
 					if (cleanedUrl.startsWith('/banners/') || cleanedUrl.startsWith('/activities/') || cleanedUrl.startsWith('/images/')) {
-						return `http://115.190.125.125:9000${cleanedUrl}`
+						return `https://api.zhongruanke.cn/minio/${cleanedUrl}`
 					}
-					return `http://115.190.125.125:9000${cleanedUrl}`
+					return `https://api.zhongruanke.cn/minio/${cleanedUrl}`
 				}
 				
 				// 如果已经是完整URL,直接返回

+ 2 - 2
LiangZhiYUMao/pages/matchmaker-workbench/mine.vue

@@ -313,8 +313,8 @@ export default {
           const nextLevel = currentLevel < 5 ? currentLevel + 1 : 5
           const nextLevelName = levelNames[nextLevel]
           const defaultAvatars = {
-            male: 'http://115.190.125.125:9000/dynamic-comments/dynamics/5c645152-9940-41d3-83a9-69ee6e0c0aaa.png',
-            female: 'http://115.190.125.125:9000/dynamic-comments/dynamics/c7fb04d7-ee4d-4b3d-bcef-f246da9c841f.png'
+            male: 'https://api.zhongruanke.cn/minio//dynamic-comments/dynamics/5c645152-9940-41d3-83a9-69ee6e0c0aaa.png',
+            female: 'https://api.zhongruanke.cn/minio//dynamic-comments/dynamics/c7fb04d7-ee4d-4b3d-bcef-f246da9c841f.png'
           }
           const avatarUrl = matchmakerInfo.avatarUrl || matchmakerInfo.avatar_url || (matchmakerInfo.gender === 1 ? defaultAvatars.male : defaultAvatars.female)
          

+ 3 - 4
LiangZhiYUMao/pages/page3/page3.vue

@@ -1,13 +1,12 @@
 <template>
   <view class="content">
-    <!-- 背景图片 http://115.190.125.125:9000/static-images/login-bg.png-->
+    
     <image class="bg-image" src="https://api.zhongruanke.cn/minio/static-images/login-bg.png" mode="aspectFill"></image>
 
 
     <!-- 顶部标题区域 -->
     <view class="header-section">
-      <!-- <view class="app-logo">🪶🪶</view> -->
-	  <!-- http://115.190.125.125:9000/static-images/logo.png -->
+    
       <image class="app-logo" src="https://api.zhongruanke.cn/minio/static-images/logo.png" mode="widthFix"></image>
       <!-- <view class="app-name">青鸾之恋</view> -->
       <view class="app-slogan">真诚相遇 · 携手一生</view>
@@ -17,7 +16,7 @@
     <view class="login-box">
       <!-- 微信一键登录 -->
       <button class="wechat-login-btn" @click="login_zheshow">
-		  <!-- http://115.190.125.125:9000/static-images/wechat-icon.png -->
+		 
         <image class="wechat-icon" src="https://api.zhongruanke.cn/minio/static-images/wechat-icon.png" mode="aspectFit"></image>
         <text>微信一键登录</text>
       </button>

+ 8 - 1
LiangZhiYUMao/pages/profile/index.vue

@@ -24,7 +24,6 @@
 				</view>
 			</view>
 			<text class="nickname">{{ profile.realName || profile.nickname || '未设置' }}</text>
-			<text class="user-id">ID: {{ profile.userId || '未知' }}</text>
 		</view>
 		
 		<!-- 编辑提示 -->
@@ -37,6 +36,13 @@
 			<view class="section">
 				<view class="section-title">个人信息</view>
 				
+				<view class="info-item" :class="{ editing: isEditing }" @click="startEdit">
+					<text class="label">昵称</text>
+					<input v-if="isEditing" class="input" v-model="profile.nickname" placeholder="请输入昵称" />
+					<text v-else class="value">{{ profile.nickname || '未设置' }}</text>
+				</view>
+				
+				
 				<view class="info-item" :class="{ editing: isEditing }" @click="startEdit">
 					<text class="label">真实姓名</text>
 					<input v-if="isEditing" class="input" v-model="profile.realName" placeholder="请输入真实姓名" />
@@ -1304,6 +1310,7 @@
 				// 准备提交的数据(只包含扩展信息字段)
 				const submitData = {
 					userId: this.currentUserId,
+					nickname: this.profile.nickname,
 					realName: this.profile.realName,
 					idCard: this.profile.idCard,
 					height: this.profile.height,

+ 1 - 1
LiangZhiYUMao/pages/today-recommend/index.vue

@@ -255,7 +255,7 @@
 				const i = c.indexOf('http')
 				if (i > 0) c = c.slice(i)
 				if (!c) return DEFAULT_IMAGES.avatar
-				if (c.startsWith('/')) return `http://115.190.125.125:9000${c}`
+				if (c.startsWith('/')) return `https://api.zhongruanke.cn/minio/${c}`
 				if (c.startsWith('http://') || c.startsWith('https://')) return c
 				return DEFAULT_IMAGES.avatar
 			},

+ 2 - 2
LiangZhiYUMao/subpkg-message/chat/chat.vue

@@ -128,7 +128,7 @@
                 <view class="voice-icon-wrapper" :class="{playing: playingVoiceId === msg.messageId}">
                   <image 
                     class="voice-icon" 
-                    :src="msg.fromUserId === userId ? 'http://115.190.125.125:9000/static-images/%E6%88%91%E6%96%B9%E8%AF%AD%E9%9F%B3%E6%B6%88%E6%81%AF' : 'http://115.190.125.125:9000/static-images/%E5%AF%B9%E6%96%B9%E8%AF%AD%E9%9F%B3%E6%B6%88%E6%81%AF'" 
+                    :src="msg.fromUserId === userId ? 'https://api.zhongruanke.cn/minio//static-images/%E6%88%91%E6%96%B9%E8%AF%AD%E9%9F%B3%E6%B6%88%E6%81%AF' : 'http://115.190.125.125:9000/static-images/%E5%AF%B9%E6%96%B9%E8%AF%AD%E9%9F%B3%E6%B6%88%E6%81%AF'" 
                     mode="aspectFit"></image>
                 </view>
                 <!-- 暂停后的继续播放按钮 -->
@@ -180,7 +180,7 @@
         <image 
           v-if="inputType === 'text'"
           class="icon-image"
-          src="http://115.190.125.125:9000/static-images/%E8%AF%AD%E9%9F%B3%E6%B6%88%E6%81%AF%E6%8C%89%E9%92%AE"
+          src="https://api.zhongruanke.cn/minio//static-images/%E8%AF%AD%E9%9F%B3%E6%B6%88%E6%81%AF%E6%8C%89%E9%92%AE"
           mode="aspectFit" />
         <text v-else>⌨️</text>
       </view>

+ 2 - 0
service/Essential/src/main/java/com/zhentao/entity/UserProfile.java

@@ -57,6 +57,8 @@ public class UserProfile implements Serializable {
     private Integer privacyPhone;
     private Integer authenticityScore;
     private Integer gender;
+    @TableField(exist = false)
+    private String nickname;
     
     @TableField(exist = false)
     private LocalDateTime createTime;

+ 12 - 1
service/Essential/src/main/java/com/zhentao/service/impl/UserProfileServiceImpl.java

@@ -8,11 +8,11 @@ import com.zhentao.mapper.UserMapper;
 import com.zhentao.mapper.UserProfileMapper;
 import com.zhentao.mapper.UserVipMapper;
 import com.zhentao.service.UserProfileService;
+import com.zhentao.service.UserService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
-import java.text.SimpleDateFormat;
 import java.time.LocalDate;
 import java.time.LocalDateTime;
 import java.time.Period;
@@ -35,6 +35,9 @@ public class UserProfileServiceImpl implements UserProfileService {
     
     @Autowired
     private UserVipMapper userVipMapper;
+
+    @Autowired
+    private UserService userService;
     
     @Override
     public Map<String, Object> getUserProfile(Long userId) {
@@ -201,6 +204,10 @@ public class UserProfileServiceImpl implements UserProfileService {
             userProfile.setAuthenticityScore(score);
             
             result = userProfileMapper.insert(userProfile);
+            UpdateWrapper updateWrapper = new UpdateWrapper();
+            updateWrapper.set("nickname",userProfile.getNickname());
+            updateWrapper.eq("user_id",userProfile.getUserId());
+            userMapper.update(null,updateWrapper);
             System.out.println("新增用户扩展信息 - 用户ID: " + userProfile.getUserId() + ", 初始评分: " + score);
         } else {
             // 存在则更新 - 创建完整的更新对象
@@ -286,6 +293,10 @@ public class UserProfileServiceImpl implements UserProfileService {
             
             // 然后使用updateById更新其他字段(会自动忽略null值,但我们已经用UpdateWrapper更新了省市区)
             result = userProfileMapper.updateById(userProfile);
+            UpdateWrapper updateWrapper2 = new UpdateWrapper();
+            updateWrapper2.set("nickname",userProfile.getNickname());
+            updateWrapper2.eq("user_id",userProfile.getUserId());
+            userMapper.update(null,updateWrapper2);
             System.out.println("✅ 更新user_profile表 - 用户ID: " + userProfile.getUserId() + ", 更新后评分: " + score + ", 影响行数: " + result);
         }