fix: login state refresh, hero layout, default avatar consistency

This commit is contained in:
yuzhiran
2026-06-15 11:04:00 +08:00
parent 07c6557454
commit 5a49d15696
3 changed files with 57 additions and 25 deletions
+5 -5
View File
@@ -24,8 +24,8 @@
### Step 4: 完整测试
```bash
# 构建检查
cd /root/opencode-workspace/zhiyin/backend && npx nest build 2>&1
# 构建检查(注意内存限制,服务器 OOM 时加 --max-old-space-size
cd /root/opencode-workspace/zhiyin/backend && NODE_OPTIONS="--max-old-space-size=2048" npx nest build 2>&1
# 单元测试
npm test -- --forceExit --detectOpenHandles 2>&1
@@ -43,14 +43,14 @@ npm test -- --forceExit --detectOpenHandles 2>&1
cd /root/opencode-workspace/zhiyin/backend && npx nest build
# 同步到生产目录
cp -rf dist/* /www/wwwroot/server/yzr-yhl/backend/dist/
cp -rf dist/* /www/wwwroot/server/zhiyin/backend/dist/
# 复制证书(postbuild 替代)
cp -r certs /www/wwwroot/server/yzr-yhl/backend/dist/src/certs
cp -r certs /www/wwwroot/server/zhiyin/backend/dist/src/certs
# 重启
pm2 restart yhl-backend
# 验证
sleep 3 && curl -s http://localhost:3002/api/share/visit/test?visitorId=v
sleep 3 && curl -s http://localhost:3006/api/user/wx-login -X POST -H "Content-Type: application/json" -d '{"code":"test"}'
```