|
@@ -3,6 +3,7 @@ package entity
|
|
|
import (
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "jfw/modules/common/src/qfw/util/jy"
|
|
|
"log"
|
|
|
qutil "qfw/util"
|
|
|
"time"
|
|
@@ -201,9 +202,14 @@ func (this *AreaPackFilter) Power(userid string, startime, endtime time.Time) bo
|
|
|
setMap["o_jy.l_areaStart_p"] = startime.Unix()
|
|
|
setMap["o_jy.o_area_p"] = this.Area
|
|
|
}
|
|
|
- return util.MQFW.UpdateById("user", userid, map[string]interface{}{
|
|
|
+ if util.MQFW.UpdateById("user", userid, map[string]interface{}{
|
|
|
"$set": setMap,
|
|
|
- })
|
|
|
+ }) {
|
|
|
+ //清除 用户权限缓存
|
|
|
+ jy.ClearBigVipUserPower(userid)
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ return false
|
|
|
}
|
|
|
|
|
|
//获取产品id
|