소스 검색

增加商品 规格 + 颜色接口

abiao 5 년 전
부모
커밋
577e5c38d3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/product_controller/product_controller.go

@@ -234,7 +234,7 @@ func (self *ProductController) GetNeedShare() {
 
 //获取某个商品关联规格列表
 func (self *ProductController) GetProductSizesByPid() {
-	_id := self.Ctx.Input.Param(":product_id")
+	_id := self.Ctx.Input.Param(":id")
 	pId, _ := strconv.ParseInt(_id, 10, 64)
 
 	type Ret struct {