{"push_id":3038573915,"size":8,"distinct_size":8,"ref":"refs/heads/5.1","head":"945096ec759a79ff1bfe38b9cb13211e638cfd5e","before":"4e01b4beff0d1376bef6968e1292a0794bb59188","commits":[{"sha":"51857ae01d8c212e583f3539c76e449d61468113","author":{"name":"Vace","email":"c28ef447749e4e663242ee29b943eade0ffeb9ab@qq.com"},"message":"验证器支持多维数组取值验证\n\n```php\r\n<?php\r\n\r\nfunction getDataValue($data, $key) {\r\n    if (is_numeric($key)) {\r\n        $value = $key;\r\n    } elseif (strpos($key, '.')) {\r\n        // 支持多维数组验证\r\n        foreach (explode('.', $key) as $key) {\r\n            if (!isset($data[$key])) {\r\n                $value = null;\r\n                break;\r\n            }\r\n            $value = $data = $data[$key];\r\n        }\r\n    } else {\r\n        $value = isset($data[$key]) ? $data[$key] : null;\r\n    }\r\n\r\n    return $value;\r\n}\r\n\r\n\r\n$object = [\r\n    'a' => [\r\n        'b' => [\r\n            'c' => 'ok'\r\n        ],\r\n        'x' => [\r\n            'y' => 'yes'\r\n        ],\r\n        'z' => 'biu...'\r\n    ]\r\n];\r\n$value1 = getDataValue($object, 'a.b.c');\r\n$value2 = getDataValue($object, 'a.b.c.d');\r\n$value3 = getDataValue($object, 'a.z');\r\n\r\nprint_r(compact('value1', 'value2', 'value3'));\r\n\r\n```","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/51857ae01d8c212e583f3539c76e449d61468113"},{"sha":"87b837204a871350a8baa05b2dc0afcb93b633b3","author":{"name":"HongWeipeng","email":"c7d1d6d4c12a1e543652282ad588f350647714b6@sina.com"},"message":"改进解析extend标签的正则","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/87b837204a871350a8baa05b2dc0afcb93b633b3"},{"sha":"b6d13239b3bbd846aafd4c6665930b5ed2c0601b","author":{"name":"HongWeipeng","email":"c7d1d6d4c12a1e543652282ad588f350647714b6@sina.com"},"message":"改善解析block标签的正则","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/b6d13239b3bbd846aafd4c6665930b5ed2c0601b"},{"sha":"45449db37deade5225e98d0ba2f1b7dbc106797c","author":{"name":"thinkphp","email":"8e72aad9c2bd2dc1abac251d16abdebb4f6b0995@qq.com"},"message":"readme更新","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/45449db37deade5225e98d0ba2f1b7dbc106797c"},{"sha":"00f4d4c2d11ffa5ea6e0ff72e3160774d4d7bc04","author":{"name":"thinkphp","email":"8e72aad9c2bd2dc1abac251d16abdebb4f6b0995@qq.com"},"message":"Merge branch '5.1' of https://github.com/top-think/framework into 5.1","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/00f4d4c2d11ffa5ea6e0ff72e3160774d4d7bc04"},{"sha":"f36634fc4e028b1d5f3e3605f953a7d675652aa7","author":{"name":"thinkphp","email":"8e72aad9c2bd2dc1abac251d16abdebb4f6b0995@qq.com"},"message":"改进File类","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/f36634fc4e028b1d5f3e3605f953a7d675652aa7"},{"sha":"f1d8ee3a91e8f504507edb5dcc49c50c47b4500f","author":{"name":"thinkphp","email":"8e72aad9c2bd2dc1abac251d16abdebb4f6b0995@qq.com"},"message":"版本更新","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/f1d8ee3a91e8f504507edb5dcc49c50c47b4500f"},{"sha":"945096ec759a79ff1bfe38b9cb13211e638cfd5e","author":{"name":"cyzonetech","email":"7736fcf111e74fdfc57008665707322128244747@users.noreply.github.com"},"message":"Merge pull request #51 from top-think/5.1\n\n合并最新","distinct":true,"url":"https://api.github.com/repos/cyzonetech/framework/commits/945096ec759a79ff1bfe38b9cb13211e638cfd5e"}]}
{"actor":{"display_login":"cyzonetech"}}