Runbook

LiteMall 备案后收尾 Runbook

用于 ICP 和 HTTPS 恢复后继续处理微信合法域名、公安备案号、演示账号权限、截图素材、监控和复查记录。

怎么执行这份 Runbook

先检查前置条件,再按命令块执行。任何命令都要根据客户环境替换域名、路径、服务名和数据库名,不要复制示例里的占位值直接跑。

部署完成后必须做验证;验证不过就按回滚路径退回,并在交接记录里写清原因。

执行命令

命令是模板,不含真实密钥。执行前必须替换项目名、路径、域名、服务名和数据库名。

域名复查

dig +short mall.liujixue.cn A
curl -I https://mall.liujixue.cn/
curl -I https://mall.liujixue.cn/wx/home/index
curl -I http://mall.liujixue.cn/wx/home/index

公开页复查

node --input-type=module <<'NODE'
const paths = ['/miniapps', '/projects/litemall', '/services/litemall', '/system']
const blockedAdminPath = '/' + 'admin' + '/auth'
for (const path of paths) {
  const html = await fetch('https://liujixue.cn' + path).then(res => res.text())
  if (!html.includes('访问移动商城') && path !== '/system') throw new Error(path + ' missing mall link')
  if (html.includes(blockedAdminPath)) throw new Error(path + ' exposes admin auth path')
  console.log(path + ' ok')
}
NODE

微信合法域名手动项

# WeChat MP console -> Development Management -> Development Settings -> Server Domain
# Add request legal domain:
# https://mall.liujixue.cn
# Add upload/download domain only if file upload or image fetch uses the same HTTPS domain.

公安备案号上线前检查

# After public security filing passes, record:
# publicSecurityRecordNumber=...
# publicSecurityRecordUrl=...
# Then add it to the footer data source and verify every public page still builds.

前置条件

`https://mall.liujixue.cn` 和 `/wx/home/index` 已经返回 200,HTTP 会跳转 HTTPS。
主站已经公开移动商城入口,但没有公开后台入口、演示账号、支付配置和生产数据。
微信小程序 AppID、管理员权限、版本状态和合法域名配置入口已确认。
公安备案所需主体、网站、域名、服务内容和 ICP 备案号资料已准备。
演示账号必须先定义低权限策略、脱敏数据和可撤销方式。

部署验证

移动商城首页和 `/wx/home/index` 可访问,并且 HTTP 会跳转 HTTPS。
微信开发者工具体验版能通过 `https://mall.liujixue.cn/wx/` 加载首页、分类和商品详情。
主站只公开移动商城入口,不公开后台登录入口、演示账号、支付配置和生产数据。
公安备案号只有在审核通过并拿到准确编号和链接后才加入页脚。
截图素材不包含后台账号、真实订单、手机号、地址、支付信息和服务器路径。

回滚路径

如果微信合法域名配置失败,先不要提交小程序审核,保留当前线上移动商城入口。
如果正式 API 异常,按 `docs/litemall-launch-checklist.md` 使用 IP 直连作为本地回滚方案。
如果公开页误暴露后台入口或账号,立即移除链接/文案并重新部署主站。
如果公安备案号填写错误,先从页脚下线记录,再按官方平台信息更正。
截图或演示账号发现敏感数据时,立即撤回素材并重置账号权限。

交接说明

记录微信合法域名配置时间、配置域名、测试版本号和体验版测试结果。
记录公安备案状态、备案号、备案详情链接和页脚上线提交号。
记录演示账号权限、可访问模块、脱敏规则和撤销方式,不记录真实密码。
记录移动商城复查结果、主站页面检查结果和任何暂缓公开的原因。
Contact

部署完成后,记录验证和回滚

部署不是跑完命令就结束。必须记录验证 URL、日志路径、备份位置、回滚命令和未验证风险。

刘鸡血 微信二维码微信扫码添加