소스 검색

show product no token

abiao 2 년 전
부모
커밋
3c5eb090fe
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

@@ -47,7 +47,7 @@ func (self *ProductController) Latest() {
 	depart := int64(0)
 	wxUId := self.GetCurrentWxUserIdByToken()
 	wxUser := user_model.GetWxUserById(wxUId, false)
-	if wxUser == nil {
+	if wxUser != nil {
 		depart = wxUser.Depart
 	}