File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/modules/apigw/entities Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ export default class ApiEntity {
275
275
const [ exist ] = oldList . filter (
276
276
( item ) =>
277
277
item ?. method ?. toLowerCase ( ) === apiConfig ?. method ?. toLowerCase ( ) &&
278
- item . path === apiConfig . path ,
278
+ item . path ?. toLowerCase ( ) === apiConfig . path ?. toLowerCase ( ) ,
279
279
) ;
280
280
281
281
if ( exist ) {
@@ -289,7 +289,7 @@ export default class ApiEntity {
289
289
const [ relativeApi ] = apiList . filter (
290
290
( item ) =>
291
291
item . method ?. toLowerCase ( ) === authRelationApi . method . toLowerCase ( ) &&
292
- item . path === authRelationApi . path ,
292
+ item . path ?. toLowerCase ( ) === authRelationApi . path . toLowerCase ( ) ,
293
293
) ;
294
294
if ( relativeApi ) {
295
295
apiConfig . authRelationApiId = relativeApi . apiId ;
@@ -551,7 +551,11 @@ export default class ApiEntity {
551
551
552
552
if ( ApiIdStatusSet ) {
553
553
ApiIdStatusSet . forEach ( ( item ) => {
554
- if ( item . Path === path && item . Method . toLowerCase ( ) === method . toLowerCase ( ) ) {
554
+ // 比对 path+method 忽略大小写
555
+ if (
556
+ item . Path . toLowerCase ( ) === path . toLowerCase ( ) &&
557
+ item . Method . toLowerCase ( ) === method . toLowerCase ( )
558
+ ) {
555
559
apiDetail = item ;
556
560
}
557
561
} ) ;
You can’t perform that action at this time.
0 commit comments