mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-06-16 18:13:19 +08:00
整理代码
This commit is contained in:
@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"sub2sing-box/api/model"
|
||||
"sub2sing-box/common"
|
||||
putil "sub2sing-box/util"
|
||||
"sub2sing-box/util"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@ -17,7 +17,7 @@ func Convert(c *gin.Context) {
|
||||
})
|
||||
return
|
||||
}
|
||||
j, err := putil.DecodeBase64(c.Query("data"))
|
||||
j, err := util.DecodeBase64(c.Query("data"))
|
||||
if err != nil {
|
||||
c.JSON(400, gin.H{
|
||||
"error": "Invalid data",
|
||||
|
Reference in New Issue
Block a user