mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
1、实现文章阅读、附件功能
2、实现与关联项目同步功能 3、实现附件删除功能
This commit is contained in:
@@ -157,6 +157,10 @@ func (c *BaseController) ShowErrorPage(errCode int, errMsg string) {
|
||||
if err := beego.ExecuteViewPathTemplate(&buf, "errors/error.tpl", beego.BConfig.WebConfig.ViewsPath, map[string]interface{}{"ErrorMessage": errMsg, "ErrorCode": errCode, "BaseUrl": conf.BaseUrl}); err != nil {
|
||||
c.Abort("500")
|
||||
}
|
||||
if errCode >= 200 && errCode <= 510 {
|
||||
c.CustomAbort(errCode, buf.String())
|
||||
}else{
|
||||
c.CustomAbort(200, buf.String())
|
||||
}
|
||||
|
||||
c.CustomAbort(200, buf.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user