新增任务创建和执行接口

This commit is contained in:
georgehao
2019-03-20 00:39:34 +08:00
parent 1c18698223
commit 31c5e57f7c
2 changed files with 147 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ func (self *BaseController) Auth() {
}
isHasAuth := strings.Contains(self.allowUrl, self.controllerName+"/"+self.actionName)
noAuth := "ajaxsave/table/loginin/loginout/getnodes/start"
noAuth := "ajaxsave/table/loginin/loginout/getnodes/startapitask/apistart/apipause"
isNoAuth := strings.Contains(noAuth, self.actionName)
if isHasAuth == false && isNoAuth == false {
@@ -95,7 +95,12 @@ func (self *BaseController) Auth() {
}
}
if self.userId == 0 && (self.controllerName != "login" && self.actionName != "loginin") {
if self.userId == 0 &&
(self.controllerName != "login" &&
self.actionName != "loginin" &&
self.actionName != "apistart" &&
self.actionName != "apitask" &&
self.actionName != "apipause") {
self.redirect(beego.URLFor("LoginController.Login"))
}
}