Logo
Explore Help
Register Sign In
wanwu/sub2apipay
1
0
Fork 0
You've already forked sub2apipay
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
main
sub2apipay/start.sh

16 lines
388 B
Bash
Raw Permalink Normal View History

feat: migrate payment provider to easy-pay, add order history and refund support - Replace zpay with easy-pay payment provider (new lib/easy-pay/ module) - Add order history page for users (pay/orders) - Add GET /api/orders/my endpoint to list user's own orders - Add GET /api/users/[id] endpoint for sub2api user lookup - Add order status tracking module (lib/order/status.ts) - Update config to support easy-pay credentials (merchant ID, key, gateway) - Update PaymentForm and PaymentQRCode components for easy-pay flow - Update pay page and admin page with new order management UI - Update order service to support easy-pay, cancellation, and refund
2026-03-01 03:04:24 +08:00
#!/bin/sh
set -e
echo "Running database migrations..."
PRISMA_BIN=$(find node_modules/.pnpm -path '*/prisma/build/index.js' -type f | head -1)
if [ -n "$PRISMA_BIN" ]; then
node "$PRISMA_BIN" migrate deploy --config prisma.config.ts
echo "Migrations complete."
else
echo "Warning: prisma CLI not found, skipping migrations."
fi
echo "Starting application..."
exec node server.js
Reference in New Issue Copy Permalink
Powered by Gitea Version: 25.4.3 Page: 36ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API