Title: 参数都传了,却报错"msg": "Bad Request: area require, but miss" · Issue #85 · phalapi/phalapi · GitHub
Open Graph Title: 参数都传了,却报错"msg": "Bad Request: area require, but miss" · Issue #85 · phalapi/phalapi
X Title: 参数都传了,却报错"msg": "Bad Request: area require, but miss" · Issue #85 · phalapi/phalapi
Description: array( 'area' => array('name' => 'area', 'require' => true,'min' => 1, 'source' => 'post', 'desc' => '区号'...
Open Graph Description: array( 'area' => array('name' => 'area', 'require' => true,'min' ...
X Description: <?php namespace App\Api; use PhalApi\Api as Api; class User extends Api { public function getRules() { return array( 'loginAcct' => array( 'area' => array('name' =&...
Opengraph URL: https://github.com/phalapi/phalapi/issues/85
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"参数都传了,却报错\"msg\": \"Bad Request: area require, but miss\"","articleBody":"```\r\n\u003c?php\r\nnamespace App\\Api;\r\nuse PhalApi\\Api as Api;\r\n\r\nclass User extends Api {\r\n public function getRules() {\r\n return array(\r\n 'loginAcct' => array(\r\n 'area' => array('name' => 'area', 'require' => true,'min' => 1, 'source' => 'post', 'desc' => '区号'),\r\n 'num' => array('name' => 'num', 'require' => true, 'min' => 1, 'source' => 'post', 'desc' => '手机号')\r\n ),\r\n );\r\n }\r\n public function loginAcct() {\r\n $area = $this->area;\r\n $num = $this->num;\r\n return array('is_login' => true, 'user_id' => 8);\r\n }\r\n}\r\n\r\n```\r\npost请求:xxx/?service=App.User.LoginAcct\r\n参数:area=86&num=1234\r\n\r\n请求结果:\r\n```\r\n{\r\n \"ret\": 400,\r\n \"data\": {\r\n \r\n },\r\n \"msg\": \"Bad Request: area require, but miss\"\r\n}\r\n```\r\n","author":{"url":"https://github.com/wulimazhiwei","@type":"Person","name":"wulimazhiwei"},"datePublished":"2019-04-17T11:47:41Z","url":"https://github.com/phalapi/phalapi/issues/85"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:67bc25ab-4f35-b570-b5ea-0df494ea629d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D38:29923:D597E:12B01D:6B006356 |
| html-safe-nonce | 646e6bc09d25e5d1f640543f4c07b4942217838c0ad6bc242560ecb88f88be37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDM4OjI5OTIzOkQ1OTdFOjEyQjAxRDo2QjAwNjM1NiIsInZpc2l0b3JfaWQiOiIzNjM3NzgwMjM4NTcxNjkyODg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8255d2eb17b8cc1dcba2f87ebba4c775bea52bb9659877e5c8c11fdd89e6b5e8 |
| hovercard-subject-tag | issue:434239123 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phalapi/phalapi/85/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87c2fb9b20e39edeacb65bd2f3c3ca94a808cd1ab7e0619b59efb4b70955f295/phalapi/phalapi/issues/85 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87c2fb9b20e39edeacb65bd2f3c3ca94a808cd1ab7e0619b59efb4b70955f295/phalapi/phalapi/issues/85 |
| og:image:alt | array( 'area' => array('name' => 'area', 'require' => true,'min' ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wulimazhiwei |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| turbo-cache-control | no-preview |
| go-import | github.com/phalapi/phalapi git https://github.com/phalapi/phalapi.git |
| octolytics-dimension-user_id | 12585518 |
| octolytics-dimension-user_login | phalapi |
| octolytics-dimension-repository_id | 36178323 |
| octolytics-dimension-repository_nwo | phalapi/phalapi |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36178323 |
| octolytics-dimension-repository_network_root_nwo | phalapi/phalapi |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width