{"action":"created","issue":{"url":"https://api.github.com/repos/beefe/react-native-wechat-ios/issues/18","repository_url":"https://api.github.com/repos/beefe/react-native-wechat-ios","labels_url":"https://api.github.com/repos/beefe/react-native-wechat-ios/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/beefe/react-native-wechat-ios/issues/18/comments","events_url":"https://api.github.com/repos/beefe/react-native-wechat-ios/issues/18/events","html_url":"https://github.com/beefe/react-native-wechat-ios/issues/18","id":184173419,"number":18,"title":"支付成功或失败，都没有回调","user":{"login":"IOSrobert","id":16103572,"avatar_url":"https://avatars.githubusercontent.com/u/16103572?v=3","gravatar_id":"","url":"https://api.github.com/users/IOSrobert","html_url":"https://github.com/IOSrobert","followers_url":"https://api.github.com/users/IOSrobert/followers","following_url":"https://api.github.com/users/IOSrobert/following{/other_user}","gists_url":"https://api.github.com/users/IOSrobert/gists{/gist_id}","starred_url":"https://api.github.com/users/IOSrobert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IOSrobert/subscriptions","organizations_url":"https://api.github.com/users/IOSrobert/orgs","repos_url":"https://api.github.com/users/IOSrobert/repos","events_url":"https://api.github.com/users/IOSrobert/events{/privacy}","received_events_url":"https://api.github.com/users/IOSrobert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-20T09:05:51Z","updated_at":"2016-10-20T09:44:14Z","closed_at":null,"body":"  componentWillMount() {\r\n\r\n    //  安卓处理支付回调结果\r\n    DeviceEventEmitter.addListener('finishedPay', (event) => {\r\n      const success = event.success;\r\n      console.log('event', event);\r\n      if (success) {\r\n      // 在此发起网络请求由服务器验证是否真正支付成功，然后做出相应的处理\r\n      } else {\r\n        dispatch(toast('error', '支付失败'));\r\n      }\r\n    });\r\n    //iOS处理支付回调结果\r\n    NativeAppEventEmitter.addListener('finishedPay', (res) => {\r\n      console.log('==event', res);\r\n      if (res.errCode === 0) {\r\n        console.log('===充值成功');\r\n        dispatch(toast('success', '支付成功'));\r\n      } else if (res.errCode === -1) {\r\n        console.log('===支付失败,请稍后尝试');\r\n        dispatch(toast('error', '支付失败'));\r\n      } else if (res.errCode === -2) {\r\n        console.log('===充值取消');\r\n        dispatch(toast('error', '支付取消'));\r\n      }\r\n    });\r\n  }"},"comment":{"url":"https://api.github.com/repos/beefe/react-native-wechat-ios/issues/comments/255059585","html_url":"https://github.com/beefe/react-native-wechat-ios/issues/18#issuecomment-255059585","issue_url":"https://api.github.com/repos/beefe/react-native-wechat-ios/issues/18","id":255059585,"user":{"login":"shexiaoheng","id":3015681,"avatar_url":"https://avatars.githubusercontent.com/u/3015681?v=3","gravatar_id":"","url":"https://api.github.com/users/shexiaoheng","html_url":"https://github.com/shexiaoheng","followers_url":"https://api.github.com/users/shexiaoheng/followers","following_url":"https://api.github.com/users/shexiaoheng/following{/other_user}","gists_url":"https://api.github.com/users/shexiaoheng/gists{/gist_id}","starred_url":"https://api.github.com/users/shexiaoheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shexiaoheng/subscriptions","organizations_url":"https://api.github.com/users/shexiaoheng/orgs","repos_url":"https://api.github.com/users/shexiaoheng/repos","events_url":"https://api.github.com/users/shexiaoheng/events{/privacy}","received_events_url":"https://api.github.com/users/shexiaoheng/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T09:44:14Z","updated_at":"2016-10-20T09:44:14Z","body":"你是说成功调起微信支付并且支付完成了，但是这个listener没有返回结果？"}}
{"actor":{"display_login":"shexiaoheng"}}