chore: update pom.xml Lombok config and deploy settings

- Update Maven compiler plugin to support Lombok annotation processing
- Add deploy.conf for automated deployment
- Update backend models and controllers
- Update frontend pages and API
This commit is contained in:
2026-03-04 12:21:29 +08:00
parent 4646fbc9b5
commit 6f2dc27fbc
20 changed files with 352 additions and 151 deletions

View File

@@ -243,10 +243,12 @@ export default {
try {
const { setSignIntegral, getUserInfo } = await import('@/api/user.js');
const { getUserPoints } = await import('@/api/tool.js');
// 子问题 A不在 API 成功前修改 currentPoints避免积分提前跳变
// 子问题 A在 API 返回成功前修改 currentPoints避免打卡前积分提前跳变
// 打卡接口GET /api/front/user/sign/integralsetSignIntegral
await setSignIntegral();
this.todaySigned = true;
// 子问题 B打卡成功后用服务端最新积分刷新,优先 GET /api/front/user/info,禁止前端本地 +30
// 子问题 B仅用服务端返回的积分更新 currentPoints,禁止前端本地 +30
// 先 GET /api/front/usergetUserInfo刷新用户信息取 integral 赋给 currentPoints
const userRes = await getUserInfo();
if (userRes && userRes.data && (userRes.data.integral != null || userRes.data.points != null)) {
this.currentPoints = userRes.data.integral ?? userRes.data.points ?? 0;