Commit Graph

4 Commits

Author SHA1 Message Date
李鹏宇
63449893ca fix(game_base): 修复登录注册与 Odoo 18 鉴权对齐 + world.html 登录闸门
- game_api.py: request.session.authenticate 改为 Odoo 18 签名
  authenticate(db, {'type':'password','login':...,'password':...}),
  修复此前多传参数导致的 500 / Access Denied
- game_api.py: 注册成功后先 commit 再自动登录(避免新用户事务未提交导致 Access Denied)
- game_api.py: 登录 authenticate 包 try/except,错误密码返回干净报错而非 500
- world.html: 新增登录闸门——未登录跳转 login.html?next=world.html,
  已登录显示左上角昵称+退出;进入游戏即需登录(与 Odoo 打通)
2026-07-23 16:44:15 +08:00
李鹏宇
c1af173f85 feat(game_base): 添加模块 logo 与 icon
- 新增 static/description/icon.png (128x128),用于 Odoo Apps 列表
- 新增 static/description/logo.png (512x512),用于模块详情页展示
- 新增 static/description/index.html,聚合展示 logo、模块说明与 API 列表
- 素材源自主项目 assets/ui/logo_planet*.png
2026-07-23 16:19:40 +08:00
pengyuthon
037261e228 feat: consolidate game_base module into addons/ + frontend assets 2026-07-23 14:14:25 +08:00
root
6e6bb5cfc7 init: game addons structure 2026-07-07 16:58:57 +08:00