Commit 9dd55e90 by wang

增加日志记录

parent 07aab597
Showing with 2 additions and 3 deletions
......@@ -4,6 +4,7 @@ import (
"github.com/gin-gonic/gin"
"go_sku_server/model"
"go_sku_server/pkg/common"
"go_sku_server/pkg/logger"
"go_sku_server/service"
)
......@@ -28,10 +29,8 @@ import (
参考业务逻辑:http://119.23.72.7/ymx/GoodsMachining/blob/master/app/Http/Controllers/ServicesController.php#L66
*/
func SkuLadderprice(ctx *gin.Context) {
//ctx.Request.ParseMultipartForm(32 << 20)
//postForm := ctx.Request.Form
if ladderPriceRequest, err :=model.NewPriceRequest(ctx); err!=nil{
logger.Log(common.GetRequestParam(ctx)+err.Error(), "ladder_price", 1)
common.Output(ctx, err.Code, err.Error(), "")
}else{
goodsInfo:=CommonController(ctx)//获取商品详情(调用树贤和黄哥之前写好的Controller)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment