From 15e3e3db5c4ee2d176aa28d821c66a5498c724fc Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Wed, 16 Mar 2022 11:44:40 +0800 Subject: [PATCH] Fix: unused import and Ping router return wrong version --- routers/controllers/site.go | 2 +- routers/controllers/slave.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/routers/controllers/site.go b/routers/controllers/site.go index b066397..5598605 100644 --- a/routers/controllers/site.go +++ b/routers/controllers/site.go @@ -49,7 +49,7 @@ func Ping(c *gin.Context) { c.JSON(200, serializer.Response{ Code: 0, - Data: conf.BackendVersion + conf.IsPro, + Data: version, }) } diff --git a/routers/controllers/slave.go b/routers/controllers/slave.go index 5a0d277..e1e7de2 100644 --- a/routers/controllers/slave.go +++ b/routers/controllers/slave.go @@ -2,8 +2,6 @@ package controllers import ( "context" - "net/url" - "strconv" "github.com/cloudreve/Cloudreve/v3/pkg/request" "github.com/cloudreve/Cloudreve/v3/pkg/serializer"