revert: 移除根路径 HashPay 回调支持
Build and Push Docker Image / build-and-push (push) Successful in 1m2s
Build and Push Docker Image / deploy (push) Successful in 7s

This commit is contained in:
2026-07-14 04:34:42 +00:00
parent 0b82776c59
commit b6da19f095
2 changed files with 1 additions and 17 deletions
-5
View File
@@ -539,11 +539,6 @@ func (h *PaymentHandler) CreateHashPayPayment(c *gin.Context) {
// HashPayNotify 处理 HashPay 回调通知
func (h *PaymentHandler) HashPayNotify(c *gin.Context) {
// 添加 CORS 头
c.Header("Access-Control-Allow-Origin", "*")
c.Header("Access-Control-Allow-Methods", "POST, OPTIONS")
c.Header("Access-Control-Allow-Headers", "Content-Type")
body, _ := io.ReadAll(c.Request.Body)
log.Printf("[HashPay] notify body: %s", string(body))