Skip to content

Commit

Permalink
fixed 修复获取key错误
Browse files Browse the repository at this point in the history
  • Loading branch information
bajins committed Jan 17, 2020
1 parent 4be51b8 commit 0801d69
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions controller.go
Expand Up @@ -74,6 +74,20 @@ func GetKey(c *gin.Context) {
return
}
if company == "netsarang" {
switch strings.ToLower(app) {
case "xshell":
app = "Xshell"
case "xftp":
app = "Xftp"
case "xlpd":
app = "Xlpd"
case "xmanager":
app = "Xmanager"
case "xshellplus":
app = "Xshell Plus"
case "powersuite":
app = "Xmanager"
}
out, err := utils.ExecutePython(filepath.Join(dir, "pyutils", "xshell_key.py"), app, version)
ExecuteScriptError(c, err)
if err != nil {
Expand Down

0 comments on commit 0801d69

Please sign in to comment.