Explorar o código

更改部门显示

abiao %!s(int64=3) %!d(string=hai) anos
pai
achega
2503c52a80

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

@@ -218,7 +218,7 @@ func (self *ProductController) Get() {
 	if wxUser == nil {
 		self.ReturnError(403, apps.NoExist, "", nil)
 	}
-	pd.CanBuy = product_model.DecideCanBuy(pd.Id, wxUser.Depart)
+	pd.CanBuy = product_model.DecideCanBuy(pd.RelateProductId, wxUser.Depart)
 	// ret.Product = pd
 	self.Data["json"] = pd
 	self.ServeResultJSON()