diff --git a/modules/user/module.go b/modules/user/module.go index 386223314..9087dbe2b 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -216,9 +216,12 @@ func (this *User) QueryAttributeValue(uid string, attr string) (value int64) { switch attr { case comm.ResGold: return user.Gold - case comm.ResExp: return user.Exp + case comm.VipExp: + return user.Exp + case comm.StarCoin: + return user.Starcoin case comm.ResDiamond: return user.Diamond }