Skip to content

[bug] 方法名带 Refresh 会出现 405错误 #4

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

Open
dogvane opened this issue May 7, 2025 · 1 comment
Open

[bug] 方法名带 Refresh 会出现 405错误 #4

dogvane opened this issue May 7, 2025 · 1 comment

Comments

@dogvane
Copy link

dogvane commented May 7, 2025

错误的方法:GetRefreshWarehouseAsync,
跟入app.MapFast(); 方法
var wWarehouse = app.MapGroup("/api/Warehouse");
wWarehouse.MapGet("/RefreshWarehouse",
async (KoalaWiki.Services.WarehouseService wWarehouse, string wid) => await wWarehouse.GetRefreshWarehouseAsync(wid));
反编译的结果检查下来没有问题,但是http的状态就是返回 405

方法名改为 GetRetryWarehouseAsync 就正常了。

@239573049
Copy link
Member

查看你的代码生成的内容

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