Replace virtual payments with WeChat Pay API v3 and verify callbacks and order polling. Cache WeChat access tokens in Redis and write structured Zap logs. Support configurable capacity plans across the API, admin and mini program, with purchase snapshots and quota enforcement. Allow personal albums before binding and share them with the current partner. Update deployment configuration and domain routing.
24 lines
517 B
Desktop File
24 lines
517 B
Desktop File
[Unit]
|
|
Description=Past Go API
|
|
After=network-online.target postgresql.service redis-server.service
|
|
Wants=network-online.target
|
|
Requires=postgresql.service redis-server.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=www
|
|
Group=www
|
|
WorkingDirectory=/home/workspace
|
|
ExecStart=/home/workspace/past-server -config /home/workspace/config.yaml
|
|
Environment=TZ=Asia/Shanghai
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
UMask=0077
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|