Kaynağa Gözat

update app wechat pay

abiao 3 yıl önce
ebeveyn
işleme
9088e920d6

+ 4 - 0
go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/cache_controller.go

@@ -2,6 +2,7 @@ package railsadmin_controller
 
 import (
 	"fohow.com/apps"
+	"fohow.com/apps/models/user_model"
 	"fohow.com/cache"
 	"github.com/astaxie/beego"
 	"github.com/astaxie/beego/context"
@@ -44,6 +45,9 @@ func (self *RailsadminController) CleanCache() {
 		beego.BeeLogger.Warn("railsadmin after save clean product cache: %d", id)
 		k := cache.GetKey(cache.GetProductByPId, id)
 		cache.Cache.Delete(k)
+	case t == "user":
+		wxUser := user_model.GetWxUserById(id, false)
+		wxUser.CleanCache()
 	}
 	self.ServeJSON()
 }