diff --git a/features/cm/software.go b/features/cm/software.go index 6feb42e7..482a7415 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -217,7 +217,10 @@ func UploadSoftwareMultiFile(w http.ResponseWriter, r *http.Request) { sql := fmt.Sprintf("select * from ne_software where ne_type='%s' and version='%s'", neTypeUpper, version) neSoftwareInfo, _ := dborm.XormGetDataBySQL(sql) if len(*neSoftwareInfo) >= 1 { - services.ResponseInternalServerError500ProcessError(w, fmt.Errorf("ne_software version has exits")) + services.ResponseWithJson(w, 200, map[string]any{ + "code": 0, + "msg": "Software version already exists", + }) return }