This commit is contained in:
Your Name
2026-04-07 18:13:03 +08:00
parent a780356908
commit fdf714f833
397 changed files with 15086 additions and 1043 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
echo "========================================"
echo "同步现有订单快递单号到物流追踪表"
echo "========================================"
echo ""
cd "$(dirname "$0")/server"
echo "[1/2] 创建物流追踪表..."
php think migrate:run
if [ $? -ne 0 ]; then
echo "错误:创建表失败"
exit 1
fi
echo ""
echo "[2/2] 同步现有快递单号..."
mysql -u root -p -e "source database/migrations/sync_existing_tracking_numbers.sql"
if [ $? -ne 0 ]; then
echo "错误:同步失败"
exit 1
fi
echo ""
echo "========================================"
echo "同步完成!"
echo "========================================"
echo ""
echo "现在可以运行定时任务测试:"
echo " php think express:auto-update"
echo ""