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

[PUT 请求,remarks() 不合法!非开放请求不允许传远程函数 key():"fun()" !] #740

Open
QingShan512 opened this issue Jun 25, 2024 · 4 comments

Comments

@QingShan512
Copy link

Description

我实现了一个新的函数,重启了项目。访问的时候提示 PUT 请求,remarks() 不合法!非开放请求不允许传远程函数 key():"fun()" !

public String getCurrentUsername(JSONObject curObj) {
try {
return SecurityUtils.getUser().getUsername();
} catch (Exception e) {
log.warn(e.getMessage());
}
return null;
}

INSERT INTO zcloudx_codegen.function (id, debug, user_id, language, name, return_type, arguments, demo, detail, version, tag, methods, date, return) VALUES (10, 0, 0, NULL, 'getCurrentUsername', 'String', NULL, '{}', '111', 0, NULL, NULL, '2024-06-25 01:59:07', NULL);

@TommyLemon
Copy link
Collaborator

只有 GET, HEAD 这两个开放请求允许前端传参远程函数,其它的只能后端 Request 表配置

@QingShan512
Copy link
Author

好的。谢谢

@aa52496994
Copy link

具体怎么配置呢?没看到对应的示例

@TommyLemon
Copy link
Collaborator

具体怎么配置呢?没看到对应的示例

@aa52496994
Request 表里一堆例子,不要做伸手党,你的这个问题不会再回复

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

No branches or pull requests

3 participants