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

控制器的请求参数(字符串类型)无法填充默认数值 #18

Open
slsnpro opened this issue Jun 7, 2018 · 2 comments
Open

Comments

@slsnpro
Copy link

slsnpro commented Jun 7, 2018

版本: 2018.5.31下载的源码
环境: win10+xampp(7.0.30)
请求: /api/v1/public/register?user_id=&share_code=&invite_code=

user_id: $this->request->get('user_id', 10, 'int'); // 可以填充
share_code: $this->request->get('share_code', 'sa'); // 不能填充

@thinkcmf
Copy link
Owner

thinkcmf commented Jun 7, 2018

不带share_code 这个参数呢

@slsnpro
Copy link
Author

slsnpro commented Jun 8, 2018

不带参数反而会填充默认值

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