13 lines
179 B
Go
13 lines
179 B
Go
|
|
package cool
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/gogf/gf/v2/frame/g"
|
||
|
|
)
|
||
|
|
|
||
|
|
func SetTest(m g.Map) g.Map {
|
||
|
|
if Config.ServerInfo.IsVip != 0 {
|
||
|
|
m["is_vip"] = Config.ServerInfo.IsVip
|
||
|
|
}
|
||
|
|
return m
|
||
|
|
}
|