{"action":"published","release":{"url":"https://api.github.com/repos/shyandsy/shy-router/releases/1578935","assets_url":"https://api.github.com/repos/shyandsy/shy-router/releases/1578935/assets","upload_url":"https://uploads.github.com/repos/shyandsy/shy-router/releases/1578935/assets{?name}","html_url":"https://github.com/shyandsy/shy-router/releases/tag/2.0.0","id":1578935,"tag_name":"2.0.0","target_commitish":"master","name":"2.0.0版本发布","draft":false,"author":{"login":"shyandsy","id":5271457,"avatar_url":"https://avatars.githubusercontent.com/u/5271457?v=3","gravatar_id":"","url":"https://api.github.com/users/shyandsy","html_url":"https://github.com/shyandsy","followers_url":"https://api.github.com/users/shyandsy/followers","following_url":"https://api.github.com/users/shyandsy/following{/other_user}","gists_url":"https://api.github.com/users/shyandsy/gists{/gist_id}","starred_url":"https://api.github.com/users/shyandsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shyandsy/subscriptions","organizations_url":"https://api.github.com/users/shyandsy/orgs","repos_url":"https://api.github.com/users/shyandsy/repos","events_url":"https://api.github.com/users/shyandsy/events{/privacy}","received_events_url":"https://api.github.com/users/shyandsy/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2015-07-23T18:21:09Z","published_at":"2015-07-23T22:29:25Z","assets":[],"tarball_url":"https://api.github.com/repos/shyandsy/shy-router/tarball/2.0.0","zipball_url":"https://api.github.com/repos/shyandsy/shy-router/zipball/2.0.0","body":"此版本允许一个控制器设置多种参数格式。比如：\r\n1.product控制器仅允许三个参数或者四个参数\r\n···\r\n$config = [\r\n\r\n    \"product\" => [\r\n        \"controller\" => \"product/product\",\r\n        \"parameters\" => [\r\n            [\"name1\", \"name2\", \"name3\"],\r\n            [\"name1\", \"name2\", \"name3\", \"name4\"]\r\n        ]\r\n    ],\r\n\r\n];\r\n···\r\n\r\n2.common/home控制器仅允许空参数\r\n···\r\n$config = [\r\n\r\n    \"default\" => [\r\n        \"controller\" => \"common/home\",\r\n        \"parameters\" => [\r\n            []\r\n        ]\r\n    ],\r\n\r\n];\r\n···\r\n\r\n3.category/category允许空参数，或者一个参数\r\n···\r\n$config = [\r\n\r\n    \"category\" => [\r\n        \"controller\" => \"category/category\",\r\n        \"parameters\" => [\r\n            [],\r\n            ['categoryId']\r\n        ]\r\n    ],\r\n\r\n];\r\n···"}}