Browse Source

更改部门显示

abiao 3 years ago
parent
commit
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()