1、实现文章阅读、附件功能

2、实现与关联项目同步功能
3、实现附件删除功能
This commit is contained in:
lifei6671
2018-07-18 17:10:24 +08:00
parent 86637ef581
commit 2416af4528
15 changed files with 653 additions and 31 deletions

View File

@@ -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())
}