601 Unstar Star 1.9K Fork 706

GVPbaomidou / kisso

请教执行插件逻辑,执行如返回false,还会在执行一次,这是什么样的设计原因呢?

Closed
skygongle  Opened this issue

作者你好,
请教执行插件逻辑,执行如返回false,还会在执行一次,这是什么样的设计原因呢?

  /**
         * 执行插件逻辑
         */
        List<SSOPlugin> pluginList = config.getPluginList();
        if (pluginList != null) {
            for (SSOPlugin plugin : pluginList) {
                boolean logout = plugin.logout(request, response);
                if (!logout) {
                    plugin.logout(request, response);
                }
            }
        }

  for (SSOPlugin plugin : pluginList) {
                boolean login = plugin.login(request, response);
                if (!login) {
                    plugin.login(request, response);
                }
            }
12260 jobob 1578914833 126263 skygongle 1578918721 total 2 participants

Comments (1)

12260 jobob 1578914833
青苗 2018-02-01 17:38 owner

重试一次而已

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/baomidou/kisso.git
git@gitee.com:baomidou/kisso.git
baomidou
kisso
kisso

Search