Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用uiauth后resStatsServer.js失效? #1

Open
C370228492 opened this issue Nov 21, 2023 · 1 comment
Open

使用uiauth后resStatsServer.js失效? #1

C370228492 opened this issue Nov 21, 2023 · 1 comment

Comments

@C370228492
Copy link

插件resStatsServer.js代码示例

module.exports = (server, { storage }) => {  
  server.on('request', (req) => { 
        req.getSession((s) => {
           // A
           console.log("req.getSession A")
        })
// 其他代码省略

现象描述

  1. 启用uiauth, 使用w2 run 方式调试插件, 匹配到请求后, 无法进去A
  2. 取消uiauth, 可以进去A 处, 插件功能正常
@avwo
Copy link
Member

avwo commented Nov 21, 2023

ui 请求不会经过 resStatsServer,把插件代码发我看下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants