7562a5f20c8d917da973809dc9e31053513e6a71
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.3%
JavaScript
18%
Vue
15.2%
HTML
0.9%
Python
0.7%
Other
0.8%