We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc29beb commit f58d614Copy full SHA for f58d614
key-gin.go
@@ -106,8 +106,12 @@ func getKey(c *gin.Context) {
106
c.JSON(http.StatusOK, common.Error(300, "请选择版本"))
107
return
108
}
109
-
110
- path := utils.ParentDirectory(utils.OsPath()) + "/pyutils"
+ path, err := utils.ContextPath("key-gin")
+ if err != nil {
111
+ c.JSON(http.StatusOK, common.Error(500, "获取key系统错误"))
112
+ return
113
+ }
114
+ path = utils.PathStitching(path, "pyutils")
115
if company == "netsarang" {
116
result, err := utils.ExecutePython(path+"/xshell_key.py", app, version)
117
if err != nil {
0 commit comments