chore(web): 添加微信域名校验文件 #30
Reference in New Issue
Block a user
Delete Branch "devin/1782285002-wechat-domain-verify"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
微信对 goods.tangshasha.com 做域名拦截/校验,需要在站点根目录提供微信下发的校验文件。
新增
public-frontend/public/e8b7a2a873a89b19a584a4f12a5bdd6b.txt(内容为微信校验串,40 字节无尾换行)。Vite 把public/下文件原样拷到dist/根目录,Go 二进制serveSPA对存在的根文件直接返回(未命中才回落index.html),因此该文件在https://goods.tangshasha.com/e8b7a2a873a89b19a584a4f12a5bdd6b.txt可访问,供微信校验。纯静态文件,不改 API/逻辑。