fix the import cycle not allowed
Showing
1 changed file
with
1 additions
and
2 deletions
| ... | @@ -31,7 +31,6 @@ import ( | ... | @@ -31,7 +31,6 @@ import ( |
| 31 | "strings" | 31 | "strings" |
| 32 | "time" | 32 | "time" |
| 33 | 33 | ||
| 34 | "github.com/astaxie/beego" | ||
| 35 | "github.com/astaxie/beego/middleware" | 34 | "github.com/astaxie/beego/middleware" |
| 36 | "github.com/astaxie/beego/utils" | 35 | "github.com/astaxie/beego/utils" |
| 37 | ) | 36 | ) |
| ... | @@ -71,7 +70,7 @@ func (ctx *Context) Abort(status int, body string) { | ... | @@ -71,7 +70,7 @@ func (ctx *Context) Abort(status int, body string) { |
| 71 | } | 70 | } |
| 72 | // last panic user string | 71 | // last panic user string |
| 73 | ctx.ResponseWriter.Write([]byte(body)) | 72 | ctx.ResponseWriter.Write([]byte(body)) |
| 74 | panic(beego.USERSTOPRUN) | 73 | panic("User stop run") |
| 75 | } | 74 | } |
| 76 | 75 | ||
| 77 | // Write string to response body. | 76 | // Write string to response body. | ... | ... |
-
Please register or sign in to post a comment