|
@@ -50,19 +50,22 @@ var level_map = map[int64]string{
|
|
|
*/
|
|
|
func (this *PowerService) Power(userid string, baseUserId, accountId, entId, positionType, positionId int64) *entity.Power {
|
|
|
logx.Info("-----req------", userid, baseUserId, accountId, entId, positionType, positionId)
|
|
|
- if positionId == 0 {
|
|
|
- return &entity.Power{
|
|
|
- Free: &entity.Free{
|
|
|
- IsFree: true,
|
|
|
- },
|
|
|
- }
|
|
|
- }
|
|
|
ent := &entity.Ent{}
|
|
|
entniche := &entity.Entniche{}
|
|
|
vip := &entity.Vip{}
|
|
|
member := &entity.Member{}
|
|
|
free := &entity.Free{}
|
|
|
userPower := entity.Power{}
|
|
|
+ if positionId == 0 {
|
|
|
+ free.IsFree = true
|
|
|
+ return &entity.Power{
|
|
|
+ Vip: vip,
|
|
|
+ Member: member,
|
|
|
+ Free: free,
|
|
|
+ Ent: ent,
|
|
|
+ Entniche: entniche,
|
|
|
+ }
|
|
|
+ }
|
|
|
cacheBl := false
|
|
|
if bytes, err := redis.GetBytes("newother", GetRedisName(positionId)); err == nil && bytes != nil {
|
|
|
if err := json.Unmarshal(*bytes, &userPower); err == nil {
|