feat: enhance profile editing and image upload functionality
- Introduced a utility function to ensure absolute media URLs for user profile images. - Updated the user cache synchronization method to handle profile data more effectively, including avatar, nickname, phone, and MBTI. - Refactored the avatar upload process to utilize the new URL handling function, improving reliability. - Modified the super article editor to focus on image uploads instead of file uploads, enhancing user experience with clearer labeling and prompts. This update aims to streamline user profile management and improve the image upload experience in the application.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* 必须调用 soul-api:`POST /api/miniprogram/upload`(multipart:file + folder)。
|
||||
* 禁止在小程序内配置 OSS AK/SK 或直传阿里云;对象存储由服务端按
|
||||
* 「管理端 → 系统设置 → OSS」中的 oss_config 写入(未配置或失败时可落本地,以后端为准)。
|
||||
* 「管理端 → 系统设置 → OSS」中的 oss_config 优先写 OSS;未配置或失败时服务端自动落本地 uploads/。
|
||||
*
|
||||
* @param {{ filePath: string, folder?: string, fileFieldName?: string }} opts
|
||||
* @returns {Promise<{ success: boolean, url?: string, data?: { url?: string } }>}
|
||||
|
||||
Reference in New Issue
Block a user