|
|
@@ -228,3 +228,13 @@ func NewAvailableIntroArea(wxUserId, inviteRank int64) (string, string) {
|
|
|
newIntroArea := fmt.Sprintf("%s%s", firstArea, introArea)
|
|
|
return newIntroArea, introArea
|
|
|
}
|
|
|
+
|
|
|
+func (self *ThreeWxUser) UpdateField(fieldName string) error {
|
|
|
+ if _, err := orm.NewOrm().Update(self, fieldName); err != nil {
|
|
|
+ beego.BeeLogger.Error("UpdateCols wx_user id=[%d] .err=[%s]", self.Id, err)
|
|
|
+ return err
|
|
|
+ }
|
|
|
+ k := cache.GetKey(cache.GetWxUserById, self.Id)
|
|
|
+ cache.Cache.Delete(k)
|
|
|
+ return nil
|
|
|
+}
|