(ctx *common.Context)
| 49 | } |
| 50 | |
| 51 | func (h *API) accessFlow(ctx *common.Context) bool { |
| 52 | for _, handler := range h.pluginAccess { |
| 53 | flag, err := handler.Execute(ctx) |
| 54 | if err != nil { |
| 55 | fmt.Println(err) |
| 56 | } |
| 57 | if flag == false && handler.IsStop() { |
| 58 | |
| 59 | return false |
| 60 | } |
| 61 | } |
| 62 | return true |
| 63 | } |
| 64 | |
| 65 | func (h *API) accessGlobalFlow(ctx *common.Context) { |
| 66 | // 全局插件不中断 |