李鹏宇
|
b41d25a545
|
chore: novel auto-sync, codex data seeding, story page font slider UI, topbar reorder, codex/codex filter/search/sticky refinements
|
2026-07-28 21:42:34 +08:00 |
|
pengyuthon
|
f78f37d677
|
fix(game_base): rebuild db-aware routing patch to fix game.pengyuthon.cn login 404
- rebuild models/ir_http.py: monkeypatch Request._get_session_and_dbname
bind DB by URL prefix (/game/->game, /yt_world/->yt_game), guarded by db_filter
- __init__.py import ir_http to load the patch
- root cause: dbfilter=^(pengyuthon|school|test|yun|game)$, nginx proxies
/game/ with Host:game.pengyuthon.cn; host cannot resolve db -> nodb route
table -> /game/api/* 404, login fails
- after fix /game/api/codex and /game/api/login return 200
|
2026-07-25 23:20:56 +08:00 |
|
李鹏宇
|
f12cab0b53
|
fix: 注册页昵称随机生成 + 去园丁文案 + 后端校验昵称重复
- login.html: 移除副标题'你不是玩家,你是园丁。'
- login.html: 昵称输入框增加随机按钮(🎲),点击生成随机昵称
- login.html: 账号输入时不再自动同步昵称
- login.html: 提交按钮'创建园丁账号'改为'创建账号'
- game_api.py: 注册时校验 res.users.name 重复,返回'该昵称已被使用'
- assets/game-api.js: 沙盘/世界数据接口按本地/线上自适应 WORLD_DB
|
2026-07-24 21:23:10 +08:00 |
|
李鹏宇
|
760cd517c2
|
feat: 规则货币合并+规则类别配置菜单 + 世界数据大报表 + 背景/论坛同步
后端 game_base:
- 货币并入 game.rule(rate/note 字段),新增可配置规则类别 game.rule.category(world/faction/character/currency)
- 新增「配置」菜单与规则类别配置子项
- /game/api/rules 按类别分组返回,/game/api/currencies 保持兼容
- 列表分组取消等级累计(aggregator=False,适配 Odoo18)
- 1.2 pre-migrate 清理旧 game.currency 记录,避免外部ID冲突
前端/官网:
- 世界数据大报表(index.html + .wd-* 样式)
- 背景 5 板块同步、论坛汉化、过渡资源与 views 拆分(announcement/codex/forum/page/rule/story)
|
2026-07-24 17:58:17 +08:00 |
|
李鹏宇
|
d9269e0f56
|
feat: 论坛/公告/剧情打通 Odoo —— 新增小说模型与阅读器
- 新增 game.story.volume / game.story.chapter 模型 + 后台菜单视图
- 新增 /game/api/story(目录) 与 /game/api/story/chapter/<id>(正文) 接口
- 三块补充 Odoo 默认种子数据(剧情 2 卷 5 章、论坛 5 帖、公告 4 条)
- 前端:剧情改造为左目录 + 右正文的小说阅读器;论坛改为登录后可见(auth-only);论坛/公告调整为竖排阅读布局
|
2026-07-24 15:56:42 +08:00 |
|
李鹏宇
|
c6ccc1d50b
|
deploy: 后端模块+前端网站更新,统一线上库名为 game
- game_base: 新增 game.page/page.item 模型(page.py),密码策略加严(>=8位且含字母+数字)
- yt_world: create 改 create_multi;权限扩至 public/portal/user;新增微观世界/资源视图与菜单
- 前端: website/auth/index 等 ?db=yt_game 统一改为 ?db=game(线上库名)
- 新增 deploy_server.sh 一键部署脚本
|
2026-07-24 10:00:51 +08:00 |
|
李鹏宇
|
a00ea237eb
|
Merge remote-tracking branch 'origin/main'
|
2026-07-23 18:57:05 +08:00 |
|
李鹏宇
|
f5c7ea4ddf
|
1.世界等级五个阶段,自己想办法命名和设计
2.势力等级分为6个
3.人物角色等级分为14个
4.货币也分为6档
一个背景的菜单栏。
写特色,介绍,背景,说明,致玩家等等
|
2026-07-23 18:53:54 +08:00 |
|
李鹏宇
|
3d34fbc7cc
|
官网首页:去掉 YUSEN 小标、右上角登录/注册、进入游戏走登录闸、补 favicon;补充 game_base 菜单图标与 yt_world 沙盘记忆模块
|
2026-07-23 17:24:21 +08:00 |
|
李鹏宇
|
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 |
|