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
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:37 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
2026-01-26 15:02:59 +08:00
Description
No description provided
Readme 19 MiB
Languages
Java 64.7%
JavaScript 17.7%
Vue 15.1%
HTML 0.9%
Python 0.5%
Other 1%