Răsfoiți Sursa

修复支付订单bug

kobe6258 4 luni în urmă
părinte
comite
8ab4eb7591
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      domian/order/trade_order.go

+ 1 - 1
domian/order/trade_order.go

@@ -69,7 +69,7 @@ func CreateTradeOrder(userId, templateUserId int, productOrderNo, tradeOrderNo,
 		logger.Error("创建支付订单失败%v", err)
 		return
 	}
-	err = tx.Updates(map[string]interface{}{
+	err = tx.Model(&order.ProductOrder{}).Updates(map[string]interface{}{
 		"trade_id":     tradeOrder.ID,
 		"trade_no":     tradeOrder.TransactionID,
 		"payment_time": time.Now(),