929bbf334b
P5.1 收尾:此前生成码只有 API。计费页现在从上到下 = 计费规则(积分→token 汇率) → 充值渠道(钱→积分:兑换码 + 微信定价用的积分包) → 用量观测, 两层汇率在同一页可见、各管各的。 - 兑换码:面额/张数/备注生成;**明文码只在生成响应显示一次**(等同现金, 台账 GET /admin/redeem-codes 服务端脱敏只露首尾,丢码重生成、不提供找回 ——顺手把接口这个第二明文出口堵了);台账含核销状态。 - 积分包:新增/上下架(微信 P5.2 上线前把定价面备好);admin api.ts 补 packs/redeem-codes 四个函数。 - launch.json 加 admin-console-alt(:5176)——5174 被用户自己的 sundynix-site 占着,不动别人端口。 live:5176 登录→生成 5 张(绿色一次性面板+复制全部)→配「入门包 1000分/¥9.9」 在售可下架→台账脱敏 curl 复核;tsc+41 vitest 全绿。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
818 B
JSON
34 lines
818 B
JSON
{
|
|
"version": "0.0.1",
|
|
"configurations": [
|
|
{
|
|
"name": "desktop-frontend",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run", "dev", "--", "--port", "5173"],
|
|
"cwd": "sundynix-desktop/frontend",
|
|
"port": 5173
|
|
},
|
|
{
|
|
"name": "admin-console",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run", "dev", "--", "--port", "5174"],
|
|
"cwd": "sundynix-admin",
|
|
"port": 5174
|
|
},
|
|
{
|
|
"name": "admin-console-alt",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run", "dev", "--", "--port", "5176"],
|
|
"cwd": "sundynix-admin",
|
|
"port": 5176
|
|
},
|
|
{
|
|
"name": "web-face",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run", "dev", "--", "--port", "5175"],
|
|
"cwd": "sundynix-web",
|
|
"port": 5175
|
|
}
|
|
]
|
|
}
|