{"action":"opened","issue":{"url":"https://api.github.com/repos/top-think/framework/issues/722","repository_url":"https://api.github.com/repos/top-think/framework","labels_url":"https://api.github.com/repos/top-think/framework/issues/722/labels{/name}","comments_url":"https://api.github.com/repos/top-think/framework/issues/722/comments","events_url":"https://api.github.com/repos/top-think/framework/issues/722/events","html_url":"https://github.com/top-think/framework/issues/722","id":239985498,"number":722,"title":" 配置项 exception_handle 设置不生效","user":{"login":"zero0-1one","id":25715577,"avatar_url":"https://avatars3.githubusercontent.com/u/25715577?v=3","gravatar_id":"","url":"https://api.github.com/users/zero0-1one","html_url":"https://github.com/zero0-1one","followers_url":"https://api.github.com/users/zero0-1one/followers","following_url":"https://api.github.com/users/zero0-1one/following{/other_user}","gists_url":"https://api.github.com/users/zero0-1one/gists{/gist_id}","starred_url":"https://api.github.com/users/zero0-1one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero0-1one/subscriptions","organizations_url":"https://api.github.com/users/zero0-1one/orgs","repos_url":"https://api.github.com/users/zero0-1one/repos","events_url":"https://api.github.com/users/zero0-1one/events{/privacy}","received_events_url":"https://api.github.com/users/zero0-1one/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-02T03:03:52Z","updated_at":"2017-07-02T03:03:52Z","closed_at":null,"body":"按文档进行实现，但不生效\r\n// 异常处理handle类 留空使用 \\think\\exception\\Handle\r\n'exception_handle' => '\\\\app\\\\common\\\\exception\\\\Http'，\r\n\r\n\r\n<?php\r\nnamespace app\\common\\exception;\r\nuse think\\exception\\Handle;\r\nuse think\\exception\\HttpException;\r\nclass Http extends Handle\r\n{\r\npublic function render(\\Exception $e)\r\n{\r\nif ($e instanceof HttpException) {\r\n$statusCode = $e->getStatusCode();\r\n}/\r\n/TODO::开发者对异常的操作\r\n//可以在此交由系统处理\r\nreturn parent::render($e);\r\n}\r\n}"}}
{"actor":{"display_login":"zero0-1one"}}