{"action":"created","issue":{"url":"https://api.github.com/repos/aoxu/TradeAndDuel/issues/1854","repository_url":"https://api.github.com/repos/aoxu/TradeAndDuel","labels_url":"https://api.github.com/repos/aoxu/TradeAndDuel/issues/1854/labels{/name}","comments_url":"https://api.github.com/repos/aoxu/TradeAndDuel/issues/1854/comments","events_url":"https://api.github.com/repos/aoxu/TradeAndDuel/issues/1854/events","html_url":"https://github.com/aoxu/TradeAndDuel/issues/1854","id":360193414,"node_id":"MDU6SXNzdWUzNjAxOTM0MTQ=","number":1854,"title":"邀请加为好友功能，奖励判断逻辑优化~","user":{"login":"aoxu","id":3169925,"node_id":"MDQ6VXNlcjMxNjk5MjU=","avatar_url":"https://avatars1.githubusercontent.com/u/3169925?v=4","gravatar_id":"","url":"https://api.github.com/users/aoxu","html_url":"https://github.com/aoxu","followers_url":"https://api.github.com/users/aoxu/followers","following_url":"https://api.github.com/users/aoxu/following{/other_user}","gists_url":"https://api.github.com/users/aoxu/gists{/gist_id}","starred_url":"https://api.github.com/users/aoxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoxu/subscriptions","organizations_url":"https://api.github.com/users/aoxu/orgs","repos_url":"https://api.github.com/users/aoxu/repos","events_url":"https://api.github.com/users/aoxu/events{/privacy}","received_events_url":"https://api.github.com/users/aoxu/received_events","type":"User","site_admin":false},"labels":[{"id":789035004,"node_id":"MDU6TGFiZWw3ODkwMzUwMDQ=","url":"https://api.github.com/repos/aoxu/TradeAndDuel/labels/P1%E5%B0%BD%E5%BF%AB","name":"P1尽快","color":"fbca04","default":false},{"id":787216921,"node_id":"MDU6TGFiZWw3ODcyMTY5MjE=","url":"https://api.github.com/repos/aoxu/TradeAndDuel/labels/%E4%BC%98%E5%8C%96","name":"优化","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"cokeTsang","id":16095159,"node_id":"MDQ6VXNlcjE2MDk1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/16095159?v=4","gravatar_id":"","url":"https://api.github.com/users/cokeTsang","html_url":"https://github.com/cokeTsang","followers_url":"https://api.github.com/users/cokeTsang/followers","following_url":"https://api.github.com/users/cokeTsang/following{/other_user}","gists_url":"https://api.github.com/users/cokeTsang/gists{/gist_id}","starred_url":"https://api.github.com/users/cokeTsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cokeTsang/subscriptions","organizations_url":"https://api.github.com/users/cokeTsang/orgs","repos_url":"https://api.github.com/users/cokeTsang/repos","events_url":"https://api.github.com/users/cokeTsang/events{/privacy}","received_events_url":"https://api.github.com/users/cokeTsang/received_events","type":"User","site_admin":false},"assignees":[{"login":"cokeTsang","id":16095159,"node_id":"MDQ6VXNlcjE2MDk1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/16095159?v=4","gravatar_id":"","url":"https://api.github.com/users/cokeTsang","html_url":"https://github.com/cokeTsang","followers_url":"https://api.github.com/users/cokeTsang/followers","following_url":"https://api.github.com/users/cokeTsang/following{/other_user}","gists_url":"https://api.github.com/users/cokeTsang/gists{/gist_id}","starred_url":"https://api.github.com/users/cokeTsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cokeTsang/subscriptions","organizations_url":"https://api.github.com/users/cokeTsang/orgs","repos_url":"https://api.github.com/users/cokeTsang/repos","events_url":"https://api.github.com/users/cokeTsang/events{/privacy}","received_events_url":"https://api.github.com/users/cokeTsang/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-14T07:47:06Z","updated_at":"2018-09-15T09:45:20Z","closed_at":null,"author_association":"OWNER","body":"玩家A邀请玩家B加为好友，判断是否能得到奖励的逻辑优化为：\r\n1.在玩家A点击发送邀请时，记录生成邀请链接的时间。\r\n2.在玩家B注册时，现在已经记录了注册时间。\r\n3.玩家B使用A的邀请链接打开游戏，对比A的生成链接时间和B的注册时间，如果注册时间在生成链接时间之后，就算是邀请成功。不用判断玩家A和B在游戏内是否已经是好友，去掉这个旧逻辑，这样就可以解决FB好友的异常。\r\n4.玩家A首次邀请成功，且B也是首次接受邀请成功，A和B就都有奖励。\r\n5.玩家A非首次邀请成功，A没有奖励，但只要B是首次接受邀请成功，B就有奖励。\r\n因为玩家A有可能把邀请链接发给很多人，都邀请成功了的话，A只能拿到一份奖励，而被邀请的人应该每人也能拿到一份奖励。\r\n6.玩家B如果不是首次接受邀请，B不再获得奖励。避免有人接受多个邀请来获得多份奖励。"},"comment":{"url":"https://api.github.com/repos/aoxu/TradeAndDuel/issues/comments/421546452","html_url":"https://github.com/aoxu/TradeAndDuel/issues/1854#issuecomment-421546452","issue_url":"https://api.github.com/repos/aoxu/TradeAndDuel/issues/1854","id":421546452,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMTU0NjQ1Mg==","user":{"login":"cokeTsang","id":16095159,"node_id":"MDQ6VXNlcjE2MDk1MTU5","avatar_url":"https://avatars1.githubusercontent.com/u/16095159?v=4","gravatar_id":"","url":"https://api.github.com/users/cokeTsang","html_url":"https://github.com/cokeTsang","followers_url":"https://api.github.com/users/cokeTsang/followers","following_url":"https://api.github.com/users/cokeTsang/following{/other_user}","gists_url":"https://api.github.com/users/cokeTsang/gists{/gist_id}","starred_url":"https://api.github.com/users/cokeTsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cokeTsang/subscriptions","organizations_url":"https://api.github.com/users/cokeTsang/orgs","repos_url":"https://api.github.com/users/cokeTsang/repos","events_url":"https://api.github.com/users/cokeTsang/events{/privacy}","received_events_url":"https://api.github.com/users/cokeTsang/received_events","type":"User","site_admin":false},"created_at":"2018-09-15T09:45:20Z","updated_at":"2018-09-15T09:45:20Z","author_association":"COLLABORATOR","body":"1.没有生成时间这种概念。"}}
{"actor":{"display_login":"cokeTsang"}}