The /weixinLogin endpoint was calling userService.updateUser() which internally deletes all sys_user_role entries and re-inserts from the user object (which has no roleIds). This caused user roles to be wiped on every WeChat login, breaking all permission checks including promotion functionality. Changed to updateUserProfile() which only updates user fields without touching role associations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ruoyi
Description
{When you're done, you can delete the content in this README and update the file with details for others getting started with your repository}
Software Architecture
Software architecture description
Installation
- xxxx
- xxxx
- xxxx
Instructions
- xxxx
- xxxx
- xxxx
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Gitee Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- Gitee blog blog.gitee.com
- Explore open source project https://gitee.com/explore
- The most valuable open source project GVP
- The manual of Gitee https://gitee.com/help
- The most popular members https://gitee.com/gitee-stars/