mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2026-04-29 15:04:03 +08:00
Merge 4154a42f720c15a8be6ab0618519725f3d2c6cc2 into effd1378b44dfdfab47ff46ccf1b7e6e0d4d7e66
This commit is contained in:
commit
e6474c35f9
@ -137,7 +137,7 @@ export default (api) => {
|
||||
return next();
|
||||
}
|
||||
// 请求以 cgiMock.prefix 开头,匹配处理
|
||||
const matchRequet = requestList.find((item) => req.path.search(item.url) !== -1);
|
||||
const matchRequet = requestList.find((item) => req.path.search(item.url) !== -1 && (item.method ? req.method === item.method.toUpperCase() : true));
|
||||
if (!matchRequet) {
|
||||
return next();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user