{"action":"closed","issue":{"url":"https://api.github.com/repos/overtrue/laravel-wechat/issues/236","repository_url":"https://api.github.com/repos/overtrue/laravel-wechat","labels_url":"https://api.github.com/repos/overtrue/laravel-wechat/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/overtrue/laravel-wechat/issues/236/comments","events_url":"https://api.github.com/repos/overtrue/laravel-wechat/issues/236/events","html_url":"https://github.com/overtrue/laravel-wechat/issues/236","id":316467499,"number":236,"title":"$payment->order->unify returning empty array","user":{"login":"devondahon","id":612946,"avatar_url":"https://avatars3.githubusercontent.com/u/612946?v=4","gravatar_id":"","url":"https://api.github.com/users/devondahon","html_url":"https://github.com/devondahon","followers_url":"https://api.github.com/users/devondahon/followers","following_url":"https://api.github.com/users/devondahon/following{/other_user}","gists_url":"https://api.github.com/users/devondahon/gists{/gist_id}","starred_url":"https://api.github.com/users/devondahon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devondahon/subscriptions","organizations_url":"https://api.github.com/users/devondahon/orgs","repos_url":"https://api.github.com/users/devondahon/repos","events_url":"https://api.github.com/users/devondahon/events{/privacy}","received_events_url":"https://api.github.com/users/devondahon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2018-04-21T06:42:10Z","updated_at":"2018-04-23T01:36:58Z","closed_at":"2018-04-23T01:36:58Z","author_association":"NONE","body":"I'm getting an empty array when my WeChatController is called, not even an error message, and the notify() is not called. What's wrong my code ?\r\n\r\n```\r\n<?php\r\n\r\nnamespace App\\Http\\Controllers;\r\n\r\nuse EasyWeChat;\r\nuse Log;\r\n\r\nclass WeChatController extends Controller\r\n{\r\n    /**\r\n     * 处理微信的请求消息\r\n     *\r\n     * @return string\r\n     */\r\n    public function serve()\r\n    {\r\n\r\n        $payment = EasyWeChat::payment('default');\r\n\r\n        $result = $payment->order->unify([\r\n            'trade_type' => 'JSAPI',\r\n            'body' => 'MY BODY',\r\n            'detail' => 'MY DETAILS',\r\n            'out_trade_no' => 'MYERPORDERID12345680',\r\n            'total_fee' => 1.01,\r\n            'spbill_create_ip' => '120.76.101.172',\r\n            'openid' => 'wxd37384b6a45b69ac',\r\n        ]);\r\n\r\n        Log::info($result);\r\n\r\n        return $result;\r\n    }\r\n\r\n    public function notify($r)\r\n    {\r\n        Log::info('!!! Payment notification !!!');\r\n        Log::info($r);\r\n    }\r\n}\r\n```\r\nweb.php\r\n```\r\nRoute::any('/wechat', 'WeChatController@serve');\r\nRoute::any('/payments/wechat-notify', 'WeChatController@notify');\r\n```"}}
{"actor":{"display_login":"devondahon"}}