소스 검색

update app wechat pay

abiao 3 년 전
부모
커밋
9088e920d6
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/cache_controller.go

+ 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()
 }