{"action":"created","issue":{"url":"https://api.github.com/repos/overtrue/wechat/issues/376","repository_url":"https://api.github.com/repos/overtrue/wechat","labels_url":"https://api.github.com/repos/overtrue/wechat/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/overtrue/wechat/issues/376/comments","events_url":"https://api.github.com/repos/overtrue/wechat/issues/376/events","html_url":"https://github.com/overtrue/wechat/issues/376","id":145143022,"number":376,"title":"微信支付下单错误","user":{"login":"Liv1020","id":5382358,"avatar_url":"https://avatars.githubusercontent.com/u/5382358?v=3","gravatar_id":"","url":"https://api.github.com/users/Liv1020","html_url":"https://github.com/Liv1020","followers_url":"https://api.github.com/users/Liv1020/followers","following_url":"https://api.github.com/users/Liv1020/following{/other_user}","gists_url":"https://api.github.com/users/Liv1020/gists{/gist_id}","starred_url":"https://api.github.com/users/Liv1020/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liv1020/subscriptions","organizations_url":"https://api.github.com/users/Liv1020/orgs","repos_url":"https://api.github.com/users/Liv1020/repos","events_url":"https://api.github.com/users/Liv1020/events{/privacy}","received_events_url":"https://api.github.com/users/Liv1020/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-04-01T10:19:43Z","updated_at":"2016-07-19T18:50:09Z","closed_at":null,"body":"## 我用的环境\r\n\r\nPHP 版本：php5.6\r\novertrue/wechat 版本：3.0\r\n\r\n## 问题及现象\r\n```\r\n$options = [\r\n    'debug'  => true,\r\n    'app_id'  => '',         // AppID\r\n    'secret'  => '',     // AppSecret\r\n    'oauth' => [\r\n        'scopes'   => ['snsapi_userinfo'],\r\n        'callback' => '',\r\n    ],\r\n    // payment\r\n    'payment' => [\r\n        'merchant_id'        => '',\r\n        'key'                => '',\r\n        'cert_path'          => '', // XXX: 绝对路径！！！！\r\n        'key_path'           => '',      // XXX: 绝对路径！！！！\r\n        'notify_url'         => '',\r\n        'device_info'        => 'WEB',\r\n    ],\r\n    'log' => [\r\n        'level' => 'debug',\r\n        'file'  => '/tmp/easywechat.log', // XXX: 绝对路径！！！！\r\n    ],\r\n];\r\n\r\nreturn new Application($options);\r\n\r\n\r\n$attributes = [\r\n        'body'             => $detail,\r\n        'out_trade_no'     => date('YmdHis') . rand(1000, 9999),\r\n        'total_fee'        => $fee,\r\n        'trade_type'       => 'JSAPI',\r\n    ];\r\n\r\n    $order = new Order($attributes);\r\n\r\n    $res = $payment->prepare($order);\r\n\r\n一直提示签名错误\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/overtrue/wechat/issues/comments/233729496","html_url":"https://github.com/overtrue/wechat/issues/376#issuecomment-233729496","issue_url":"https://api.github.com/repos/overtrue/wechat/issues/376","id":233729496,"user":{"login":"canon4ever","id":6733303,"avatar_url":"https://avatars.githubusercontent.com/u/6733303?v=3","gravatar_id":"","url":"https://api.github.com/users/canon4ever","html_url":"https://github.com/canon4ever","followers_url":"https://api.github.com/users/canon4ever/followers","following_url":"https://api.github.com/users/canon4ever/following{/other_user}","gists_url":"https://api.github.com/users/canon4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/canon4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canon4ever/subscriptions","organizations_url":"https://api.github.com/users/canon4ever/orgs","repos_url":"https://api.github.com/users/canon4ever/repos","events_url":"https://api.github.com/users/canon4ever/events{/privacy}","received_events_url":"https://api.github.com/users/canon4ever/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T18:50:09Z","updated_at":"2016-07-19T18:50:09Z","body":"支付未发现问题，我用着很好。"}}
{"actor":{"display_login":"canon4ever"}}