mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-10-31 16:49:03 +08:00 
			
		
		
		
	Fix: unused import and Ping router return wrong version
This commit is contained in:
		| @ -49,7 +49,7 @@ func Ping(c *gin.Context) { | |||||||
|  |  | ||||||
| 	c.JSON(200, serializer.Response{ | 	c.JSON(200, serializer.Response{ | ||||||
| 		Code: 0, | 		Code: 0, | ||||||
| 		Data: conf.BackendVersion + conf.IsPro, | 		Data: version, | ||||||
| 	}) | 	}) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | |||||||
| @ -2,8 +2,6 @@ package controllers | |||||||
|  |  | ||||||
| import ( | import ( | ||||||
| 	"context" | 	"context" | ||||||
| 	"net/url" |  | ||||||
| 	"strconv" |  | ||||||
|  |  | ||||||
| 	"github.com/cloudreve/Cloudreve/v3/pkg/request" | 	"github.com/cloudreve/Cloudreve/v3/pkg/request" | ||||||
| 	"github.com/cloudreve/Cloudreve/v3/pkg/serializer" | 	"github.com/cloudreve/Cloudreve/v3/pkg/serializer" | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 HFO4
					HFO4