portowyi 1 年之前
父节点
当前提交
baddc1d2da
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      controller/products.go

+ 4 - 0
controller/products.go

@@ -2,6 +2,7 @@ package controller
 
 import (
 	"kng_feed_api/model"
+	"log"
 	"net/http"
 
 	"github.com/gin-gonic/gin"
@@ -10,6 +11,9 @@ import (
 func LoadProductsInfo(context *gin.Context) {
 	var products model.ProductsArray
 	err := context.ShouldBindJSON(&products)
+
+	log.Println(products)
+
 	if err != nil {
 		context.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
 		return