Skip to content

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

Description

@slsnpro

版本: 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'); // 不能填充

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions