Explorar o código

Merge branch 'master' of http://git.hiwavo.com/Fohow/fohow_api

abiao %!s(int64=4) %!d(string=hai) anos
pai
achega
382e9477ab

+ 5 - 0
go/gopath/src/fohow.com/apps/controllers/user_controller/binding_controller.go

@@ -134,6 +134,11 @@ func (self *UserController) BindingTelNew() {
 		if user != nil {
 			self.SetSession(apps.SessionUserKey, user.Id)
 		}
+		//消除user,wxuser缓存
+		userKey := fmt.Sprintf("user.GetByUid[%d]", wxUser.UserId)
+		wxUserKey := cache.GetKey(cache.GetWxUserById, wxUser.Id)
+		cache.Cache.Delete(userKey)
+		cache.Cache.Delete(wxUserKey)
 	}
 	self.Data["json"] = user
 	self.ServeJSON()