From da5d24dcb0c6296fdbf5b8a9a3f4722de1852fcc Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 4 Nov 2022 12:00:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=B5=84=E6=BA=90=E8=B4=A7?= =?UTF-8?q?=E5=B8=81=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/user/module.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }