diff --git a/comm/const.go b/comm/const.go index 347dea09a..947093777 100644 --- a/comm/const.go +++ b/comm/const.go @@ -533,6 +533,7 @@ const ( Merchantmoney = "merchantmoney" //商队虚拟币 Integral = "integral" //充值积分 Profit = "profit" + Deposit = "deposit" ) const ( Gold int32 = 1 //金币 diff --git a/modules/user/module.go b/modules/user/module.go index 62d812b17..fb94a58fd 100644 --- a/modules/user/module.go +++ b/modules/user/module.go @@ -697,6 +697,7 @@ func (this *User) change(session comm.IUserSession, attr string, add int32) (cha comm.Merchantmoney: change.Merchantmoney, comm.Integral: change.Integral, comm.Profit: change.Profit, + comm.Deposit: change.Deposit, } //user ex