Feat: show pro flag in ping response
This commit is contained in:
parent
5bda037d74
commit
dd4c3e05d3
1 changed files with 6 additions and 1 deletions
|
@ -42,9 +42,14 @@ func SiteConfig(c *gin.Context) {
|
||||||
|
|
||||||
// Ping 状态检查页面
|
// Ping 状态检查页面
|
||||||
func Ping(c *gin.Context) {
|
func Ping(c *gin.Context) {
|
||||||
|
version := conf.BackendVersion
|
||||||
|
if conf.IsPro == "true" {
|
||||||
|
version += "-pro"
|
||||||
|
}
|
||||||
|
|
||||||
c.JSON(200, serializer.Response{
|
c.JSON(200, serializer.Response{
|
||||||
Code: 0,
|
Code: 0,
|
||||||
Data: conf.BackendVersion,
|
Data: conf.BackendVersion + conf.IsPro,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue