mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat: show pro flag in ping response
This commit is contained in:
@@ -42,9 +42,14 @@ func SiteConfig(c *gin.Context) {
|
||||
|
||||
// Ping 状态检查页面
|
||||
func Ping(c *gin.Context) {
|
||||
version := conf.BackendVersion
|
||||
if conf.IsPro == "true" {
|
||||
version += "-pro"
|
||||
}
|
||||
|
||||
c.JSON(200, serializer.Response{
|
||||
Code: 0,
|
||||
Data: conf.BackendVersion,
|
||||
Data: conf.BackendVersion + conf.IsPro,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user