Files
MemRelay/projects/e09440d3-e175-4bbb-96a9-253dc56dc51a/Checkpoint 2026-10-15 10-08-33 UTC [46e947e73f].md
T
memrelay 072198ff14 create: Checkpoint 2026-10-15 10:08:33 UTC [46e947e73f]
MemRelay-Operation: checkpoint-save:cmnet-summary-checkpoint-20261015
MemRelay-Resource: 90cebb2e-d151-4050-b4e2-9e839c1f7b48
2026-10-15 18:08:36 +08:00

25 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-10-15 10:08:33 UTC [46e947e73f]
type: checkpoint
permalink: main/projects/e09440d3-e175-4bbb-96a9-253dc56dc51a/checkpoint-2026-10-15-10-08-33-utc-46e947e73f
stable_id: 90cebb2e-d151-4050-b4e2-9e839c1f7b48
scope: project
memory_type: checkpoint
project_id: e09440d3-e175-4bbb-96a9-253dc56dc51a
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: cmnet-summary-checkpoint-20261015
created_at: '2026-10-15T10:08:33.198374+00:00'
updated_at: '2026-10-15T10:08:33.198374+00:00'
tags:
- cmnet
- summary
---
完成:修正移动首页汇总,使语音总量/剩余和流量总量/已用/剩余与 shop.10086.cn 个人中心进度条一致。
原因:之前把所有流量包(含定向)相加,并且整数格式化会把 100 截成 1。
实现:internal/cmnet/format.go 的 officialTotals;启动时用已保存的 planRaw 重算快照。明细列表仍包含定向包。
验证:go test ./internal/cmnet 通过;本地 8788 重启后页面为语音 100/78 分钟,流量 64.10 / 已用 31.39 / 剩余 32.70 G。已用比总量减剩余少 0.01,是分边四舍五入。
下一步:用户尚未要求提交或部署 cmnetsmsinfo。若要把话费余额改成官网「可用余额」curFee,等用户确认。
给下个会话:服务在 E:\code\cmnetsmsinfo,go run . 监听 127.0.0.1:8788,会话保存在 data/state.json。不要把手机号、cookie 写进记忆。