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>
The file is empty.
Description
Languages
Java
64.7%
JavaScript
17.7%
Vue
15.1%
HTML
0.9%
Python
0.5%
Other
1%