animeic 1 year ago
parent
commit
e167d77eb0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      boxcost/api/plan.go

+ 2 - 0
boxcost/api/plan.go

@@ -1151,6 +1151,8 @@ func UpdateProductPlan(c *gin.Context, apictx *ApiSession) (interface{}, error)
 	var plan model.ProductPlan
 	err := c.ShouldBindJSON(&plan)
 	if err != nil {
+		fmt.Println(err)
+		log.Error(err)
 		return nil, errors.New("参数错误")
 	}
 	if plan.Id.Hex() == "" {