fix(douyu): 完善绑定失败处理与本地开发日志

- 捕获斗鱼账号及客户游戏角色的换绑冷却失败
- 客户页失败后展示截图联系客服提示
- dev.sh 默认跟踪容器日志并补充日志命令入口
This commit is contained in:
yml
2026-11-18 11:00:28 +08:00
parent 9b2fcf1d1f
commit f23e8792b2
4 changed files with 88 additions and 24 deletions
+14 -1
View File
@@ -3,6 +3,12 @@ set -Eeuo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
COMPOSE_FILE="${ROOT_DIR}/docker-compose.dev.yml"
LOG_TAIL="${DEV_LOG_TAIL:-120}"
follow_app_logs() {
printf '\n[dev] 跟踪 backend / frontend / web 日志(Ctrl+C 只退出日志,不停止容器)\n'
docker compose -f "${COMPOSE_FILE}" logs -f --tail="${LOG_TAIL}" backend frontend web
}
case "${1:-}" in
up|start)
@@ -10,7 +16,10 @@ case "${1:-}" in
;;
logs)
shift
exec docker compose -f "${COMPOSE_FILE}" logs -f --tail=200 "$@"
if [[ $# -eq 0 ]]; then
set -- backend frontend web
fi
exec docker compose -f "${COMPOSE_FILE}" logs -f --tail="${LOG_TAIL}" "$@"
;;
down|stop)
exec docker compose -f "${COMPOSE_FILE}" down
@@ -18,6 +27,10 @@ case "${1:-}" in
ps|status)
exec docker compose -f "${COMPOSE_FILE}" ps
;;
"")
bash "${ROOT_DIR}/deploy/mac-dev.sh"
follow_app_logs
;;
*)
exec bash "${ROOT_DIR}/deploy/mac-dev.sh" "$@"
;;