 kate522andClaude Opus 5
|
5c6b422866
|
fix(frontend): route every user-center points label through the custom currency name
后台「积分配置 → 自定义货币名称」改名后,用户中心仍有大量硬编码
「积分」:做任务赚积分 / 购买积分 / 签到领积分、积分记录 / 积分任务、
每日可免费获取 XX 积分、我的积分、积分+1、创作中心积分收益等。
get_currency_name() 早已存在且可用,问题只是这些文案没有走它。
本PR 全部替换,无双路、无迁移:
服务端渲染(用户中心 renderers)
- credits-balance.php:购买/做任务赚/签到领 + 整个购买弹窗
- profile-credits.php:积分记录 / 积分任务 页签
- credits-points-tasks.php:每日上限三态与空态
- sidebar-creator.php / profile-creator.php:积分收益
- transfer-modal.php:积分转账提示
- Signin.php:签到详情弹窗(我的积分 / 奖励 tooltip / 积分+N)
- VipServiceModal.php:我的积分 / 积分兑换会员
- download-permission-card.php:购买价格
客户端渲染(JS 无法调用 PHP,注入 currencyName 到 aksrtData)
- signin.js:签到状态行「已签到 N 天 +1」
- credits.js:转账标题/金额标签 + 购买提示 toast
- cms-download.js:积分不足视图、我的积分 入口、余额不足文案
- pay-vip.js:积分兑换会员入口(优先 catalog.currency_name)
- order-center.js:订单行单位回退
契约测试同步改为断言模板构造而非死字符串,并新增两例:
改名后跟随、未注入时回退「积分」。
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
2026-11-01 15:09:49 +08:00 |
|
kate522
|
2595bb02db
|
fix(frontend): 统一计数缩写口径并将流水号改为订单号
前台各处评论、浏览、点赞、收藏、已售数量统一走
aksrt_format_number() 缩写(≥10000 → 1.2W+,≥1000 → 1.5K),
缩写后缀统一为大写 K,与既有 W+ 保持一致。PHP 渲染缩写文本的
同时保留 data-base-count 原始整数,JS 增量计算不受影响;
article.js / comment-ajax.js 内的 formatStatCount / formatCount
与 PHP 规则保持同一套,避免点赞收藏后文本回跳成全量数字。
文章详情页购买信息卡、用户中心创作者收益明细、后台分成与提现
管理页、支付设置页以及四封订单/提现邮件模板中,面向用户展示的
「流水号」字样统一改为「订单号」;代码注释、内部错误码与
WP_Error 文案保留原表述。
验证:node --test "tests/*/*.test.cjs" 508 项全部通过;
php -l 检查全部改动文件无语法错误;重新构建 admin SPA 与
前台 runtime bundle。
|
2026-10-06 14:13:51 +08:00 |
|
kate522
|
aad83072a8
|
refactor(pay): 统一流水号,移除订单/流水/提现三类号码前缀
订单号、资金流水号、提现单号此前各自带前缀配置,同一笔业务在不同界面会
呈现多个号码口径,对账与客诉排查都要先做一次前缀换算。现收敛为单一流水号
分配器,不再按业务类型区分号码形态。
- 删除 payment_order_prefix / payment_flow_prefix /
payment_withdrawal_prefix 三项配置项及其生成、校验链路
- BusinessNumber::allocate() 成为唯一入口,输出 {YmdHis}{6 位随机},
共 20 位无前缀,满足 VARCHAR(32) 与网关 out_trade_no ≤ 32 的限制
- 订单、资金流水、提现、卡密渠道交易号四处生成点全部改走该分配器
- 后台支付中心表头「订单号 / 提现单号」统一为「流水号」
- 前台用户中心与订单卡片文案同步统一;前台订单详情合并为单行流水号,
账本流水号不再下发到前台,避免同一单据出现两个对外号码
- 同步更新 financial-flow / pay-card / card-pass-order-numbers 契约测试
与 BusinessNumberTest 断言
按用户要求不做双路逻辑与数据迁移,直接替换为统一方案,历史行不做转换。
验证:node --test tests/**/*.test.cjs 362/364 通过,新增 37 项契约;失败的
2 项在改动前的干净 HEAD 基线上同样失败(基线 327 项 / 失败 2 项),分别命中
遗留的 fa fa- 标记与 FA 版本号断言,与本次改动无关。phpunit 44 项 / 103
断言全部通过;php -l 全部改动的 PHP 文件通过。
|
2026-09-18 22:14:27 +08:00 |
|
kate522
|
5cae5b5c93
|
积分与余额账务系统硬切重构
|
2026-08-24 15:59:11 +08:00 |
|
kate522
|
a0b84977a2
|
feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
|
2026-08-18 20:46:21 +08:00 |
|
 kate522andClaude Fable 5
|
5f0239389a
|
fix(user-center): remove creator income hint
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-08-08 13:23:35 +08:00 |
|
 kate522andClaude Fable 5
|
77331979a7
|
feat(user-center): refine creator income details
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-08-08 12:54:59 +08:00 |
|
kate522
|
7cca472fe9
|
fix(payment): close creator income contract gaps
|
2026-08-07 13:30:37 +08:00 |
|
kate522
|
e20418e909
|
feat(payment): separate creator income settlement
|
2026-08-07 12:39:32 +08:00 |
|
 kate522andClaude Fable 5
|
9e6ae32fc1
|
feat(payment): complete creator income center
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-08-07 10:59:58 +08:00 |
|
 kate522andClaude Fable 5
|
ceff04ce54
|
feat(user-center): add dedicated creator workspace
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
2026-08-06 17:23:31 +08:00 |
|