-精简HTML结构,优化`account.html`,`apple-card/account.html`,和`t-mall-game/account.html`中iframe的布局。 - 调整CSS样式,以增强用户界面的一致性和可读性。 - 优化`account_history.html`中的表格和搜索栏的样式与对齐。 fix(controller): 修正新增控制器参数顺序 - 修正`addController.go`中的参数顺序,确保交易类型正确传递给服务层。 - 更新数据库插入操作,确保UUID正确分配给新记录,防止SQL错误。
19 lines
488 B
Bash
19 lines
488 B
Bash
#!/bin/bash
|
|
# $1 = host to connect to (e.g. localhost)
|
|
# $2 = port to connect to (e.g. 3306)
|
|
# $3 = timeout in seconds, after which the script will exit with status 1 (optional)
|
|
# Example usage:
|
|
# wait-for-it.sh localhost:3306 -- /usr/bin/python app.py
|
|
#
|
|
set -x
|
|
host="${1%:*}"
|
|
port="${1#*:}"
|
|
shift
|
|
# shellcheck disable=SC2124
|
|
cmd="$@"
|
|
until nc -z "$host" "$port"; do
|
|
>&2 echo "Waiting for $host:$port to be available..."
|
|
sleep 1
|
|
done
|
|
>&2 echo "$host:$port is available!"
|
|
exec "$cmd" |