Files
rlz/rlz
renjianbo 7562a5f20c fix: use updateUserProfile instead of updateUser in WeChat login to prevent role deletion
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>
2026-06-11 00:44:47 +08:00
..

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

  1. xxxx
  2. xxxx
  3. xxxx

Instructions

  1. xxxx
  2. xxxx
  3. xxxx

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/