Преглед изворни кода

edit poster haibao function

abiao пре 5 година
родитељ
комит
564d3f4ce9

+ 3 - 3
go/gopath/src/fohow.com/apps/controllers/poster_controller/poster_controller.go

@@ -49,7 +49,7 @@ func (self *PosterController) GetPosterXcxQrcode() {
 
 	_id := self.Ctx.Input.Param(":tid")
 	id, _ := strconv.ParseInt(_id, 10, 64)
-	useCache, _ := self.GetBool("cache", false)
+	useCache, _ := self.GetBool("cache", true)
 
 	wxUid := self.GetCurrentWxUserId()
 
@@ -58,7 +58,7 @@ func (self *PosterController) GetPosterXcxQrcode() {
 	var qrcodeUrl string
 	var wxHead string
 
-	wxUser := self.GetCurrentWxUser(false)
+	wxUser := self.GetCurrentWxUser(true)
 	if wxUser != nil {
 		wxHead = GetCdnFullImgUrl(wxUser.Head)
 	}
@@ -113,7 +113,7 @@ func (self *PosterController) UpdatePosterXcxQrcode() {
 
 	_id := self.Ctx.Input.Param(":tid")
 	id, _ := strconv.ParseInt(_id, 10, 64)
-	useCache, _ := self.GetBool("cache", true)
+	useCache, _ := self.GetBool("cache", false)
 
 	wxUid := self.GetCurrentWxUserId()