更新代码
This commit is contained in:
@@ -21,11 +21,6 @@ type BackendOaNoticeController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// Prepare 所有接口执行前确保通知公告表存在。
|
||||
func (c *BackendOaNoticeController) Prepare() {
|
||||
_ = models.EnsureOaNoticeTable()
|
||||
}
|
||||
|
||||
func (c *BackendOaNoticeController) oaNoticeClaims() (*jwtutil.Claims, error) {
|
||||
auth := c.Ctx.Request.Header.Get("Authorization")
|
||||
if auth == "" {
|
||||
|
||||
Reference in New Issue
Block a user