Documentation ¶
Index ¶
- Constants
- func AddBaseCoin(id int64, add float64) (left float64, ok bool)
- func AddFavor(id int64, add float64) (left float64, ok bool)
- func BaseCoinOf(id int64) float64
- func FavorOf(id int64) float64
- func LevelAt(favor float64) (level int, up float64)
- func RealCoin(base float64) float64
- func SetNeedReturnCost(ctx *zero.Ctx)
- func SumFavorAt(level int) float64
- func Unit() string
Constants ¶
View Source
const ReturnCostTag = "return_cost"
Variables ¶
This section is empty.
Functions ¶
func AddBaseCoin ¶
AddBaseCoin 将指定用户的!基础货币!加add,为负数时则减
func SetNeedReturnCost ¶ added in v0.3.2
SetNeedReturnCost 标记当前操作需要返还扣除的货币
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.