fix: add missing parameter

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2019-10-15 10:33:21 +08:00
parent cfc1929a80
commit 26a7f2b75e
3 changed files with 10 additions and 4 deletions

View File

@@ -391,6 +391,8 @@ func CreateApp(req *restful.Request, resp *restful.Response) {
return
}
createAppRequest.Username = req.HeaderParameter(constants.UserNameHeader)
validate, _ := strconv.ParseBool(req.QueryParameter("validate"))
var result interface{}
@@ -431,8 +433,8 @@ func CreateAppVersion(req *restful.Request, resp *restful.Response) {
return
}
// override app id
appId := req.PathParameter("app")
createAppVersionRequest.AppId = appId
createAppVersionRequest.AppId = req.PathParameter("app")
createAppVersionRequest.Username = req.HeaderParameter(constants.UserNameHeader)
validate, _ := strconv.ParseBool(req.QueryParameter("validate"))