{"action":"created","issue":{"url":"https://api.github.com/repos/top-think/think/issues/399","repository_url":"https://api.github.com/repos/top-think/think","labels_url":"https://api.github.com/repos/top-think/think/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/top-think/think/issues/399/comments","events_url":"https://api.github.com/repos/top-think/think/issues/399/events","html_url":"https://github.com/top-think/think/issues/399","id":141472851,"number":399,"title":"自动填充无效","user":{"login":"benaheng","id":5960864,"avatar_url":"https://avatars.githubusercontent.com/u/5960864?v=3","gravatar_id":"","url":"https://api.github.com/users/benaheng","html_url":"https://github.com/benaheng","followers_url":"https://api.github.com/users/benaheng/followers","following_url":"https://api.github.com/users/benaheng/following{/other_user}","gists_url":"https://api.github.com/users/benaheng/gists{/gist_id}","starred_url":"https://api.github.com/users/benaheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benaheng/subscriptions","organizations_url":"https://api.github.com/users/benaheng/orgs","repos_url":"https://api.github.com/users/benaheng/repos","events_url":"https://api.github.com/users/benaheng/events{/privacy}","received_events_url":"https://api.github.com/users/benaheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-17T03:57:14Z","updated_at":"2016-03-17T04:16:28Z","closed_at":null,"body":"控制器:\r\n\r\n$M=D('fields');\r\nprint_r($M->auto(\"fields.edit\")->create());die;\r\n\r\nauto.php\r\n\r\n<?php\r\nreturn [\r\n    'fields'  =>[\r\n        'setting'        => ['serialize','callback'],\r\n        'name'        => 'test',\r\n        '__option__'  => [\r\n            'scene' => [\r\n                'add'   =>  ['setting','name'],\r\n                'edit'  =>  ['setting','name']\r\n            ]\r\n        ]\r\n    ],\r\n\r\n];\r\n\r\n\r\n\r\n结果:\r\n\r\nArray ( [tableid] => 2 [fid] => 78 [name] => 标题 [tip] => [setting] => Array ( [size] => [defaultvalue] => [ispassword] => 0 ) [pattern] => [error_tip] => [show_list] => 1 [show_add] => 1 [show_edit] => 1 [show_tab] => 0 [sort] => 2 )"},"comment":{"url":"https://api.github.com/repos/top-think/think/issues/comments/197686014","html_url":"https://github.com/top-think/think/issues/399#issuecomment-197686014","issue_url":"https://api.github.com/repos/top-think/think/issues/399","id":197686014,"user":{"login":"benaheng","id":5960864,"avatar_url":"https://avatars.githubusercontent.com/u/5960864?v=3","gravatar_id":"","url":"https://api.github.com/users/benaheng","html_url":"https://github.com/benaheng","followers_url":"https://api.github.com/users/benaheng/followers","following_url":"https://api.github.com/users/benaheng/following{/other_user}","gists_url":"https://api.github.com/users/benaheng/gists{/gist_id}","starred_url":"https://api.github.com/users/benaheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benaheng/subscriptions","organizations_url":"https://api.github.com/users/benaheng/orgs","repos_url":"https://api.github.com/users/benaheng/repos","events_url":"https://api.github.com/users/benaheng/events{/privacy}","received_events_url":"https://api.github.com/users/benaheng/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T04:16:28Z","updated_at":"2016-03-17T04:16:28Z","body":"自动验证也无效  莫非是我使用方式不对? 之前我记得还可以的"}}