Merge remote-tracking branch 'origin/main' into lichang
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user