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

interfaceFilter.js是空文件?? #33

Closed
Mockingbird1234 opened this issue Feb 7, 2018 · 1 comment
Closed

interfaceFilter.js是空文件?? #33

Mockingbird1234 opened this issue Feb 7, 2018 · 1 comment

Comments

@Mockingbird1234
Copy link

http.js下的const _filter = require('./interfaceFilter');根本没有引入东西

@hq229075284
Copy link
Collaborator

hq229075284 commented Feb 8, 2018

这个文件是用来模拟根据入参过滤数据的,可以在http.js中看到以下代码

 const data = typeof (_filter[req.url]) === 'function'
        ? _filter[req.url](originData, postData)
        : originData

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