diff --git a/api/controller/cluster.go b/api/controller/cluster.go index cd0b3a6175..a8dd90f706 100644 --- a/api/controller/cluster.go +++ b/api/controller/cluster.go @@ -473,13 +473,6 @@ func (c *ClusterController) GetLangVersion(w http.ResponseWriter, r *http.Reques httputil.ReturnBcodeError(r, w, fmt.Errorf("update lang version failure: %v", err)) return } - //if versions != nil && len(versions) == 0 { - // versions, err = db.GetManager().LongVersionDao().InitLanguageVersion(language) - // if err != nil { - // httputil.ReturnBcodeError(r, w, fmt.Errorf("failed to get language pack version")) - // return - // } - //} httputil.ReturnSuccess(r, w, versions) } diff --git a/cmd/version.go b/cmd/version.go index f8c2161e4e..bbeeb0b219 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -37,5 +37,5 @@ func ShowVersion(module string) { // GetVersion GetVersion func GetVersion() string { - return "tstt" + return version }