{"action":"created","issue":{"url":"https://api.github.com/repos/hackxhj/BeautyAddressBook/issues/2","repository_url":"https://api.github.com/repos/hackxhj/BeautyAddressBook","labels_url":"https://api.github.com/repos/hackxhj/BeautyAddressBook/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hackxhj/BeautyAddressBook/issues/2/comments","events_url":"https://api.github.com/repos/hackxhj/BeautyAddressBook/issues/2/events","html_url":"https://github.com/hackxhj/BeautyAddressBook/issues/2","id":157456365,"number":2,"title":"可以查到归属地和哪一个信号","user":{"login":"vickmiller","id":16420175,"avatar_url":"https://avatars.githubusercontent.com/u/16420175?v=3","gravatar_id":"","url":"https://api.github.com/users/vickmiller","html_url":"https://github.com/vickmiller","followers_url":"https://api.github.com/users/vickmiller/followers","following_url":"https://api.github.com/users/vickmiller/following{/other_user}","gists_url":"https://api.github.com/users/vickmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/vickmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vickmiller/subscriptions","organizations_url":"https://api.github.com/users/vickmiller/orgs","repos_url":"https://api.github.com/users/vickmiller/repos","events_url":"https://api.github.com/users/vickmiller/events{/privacy}","received_events_url":"https://api.github.com/users/vickmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-05-30T08:32:39Z","updated_at":"2016-05-30T09:47:40Z","closed_at":null,"body":"可以用代码查到归属地和哪一个信号，比如联通，移动还是电信的吗？"},"comment":{"url":"https://api.github.com/repos/hackxhj/BeautyAddressBook/issues/comments/222455882","html_url":"https://github.com/hackxhj/BeautyAddressBook/issues/2#issuecomment-222455882","issue_url":"https://api.github.com/repos/hackxhj/BeautyAddressBook/issues/2","id":222455882,"user":{"login":"hackxhj","id":7778787,"avatar_url":"https://avatars.githubusercontent.com/u/7778787?v=3","gravatar_id":"","url":"https://api.github.com/users/hackxhj","html_url":"https://github.com/hackxhj","followers_url":"https://api.github.com/users/hackxhj/followers","following_url":"https://api.github.com/users/hackxhj/following{/other_user}","gists_url":"https://api.github.com/users/hackxhj/gists{/gist_id}","starred_url":"https://api.github.com/users/hackxhj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackxhj/subscriptions","organizations_url":"https://api.github.com/users/hackxhj/orgs","repos_url":"https://api.github.com/users/hackxhj/repos","events_url":"https://api.github.com/users/hackxhj/events{/privacy}","received_events_url":"https://api.github.com/users/hackxhj/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T09:47:40Z","updated_at":"2016-05-30T09:47:40Z","body":"-(NSString*)getOperator:(NSString*)phoneNumber\r\n{\r\n    NSString *searchText = phoneNumber;\r\n    NSError *error = NULL;\r\n    NSRegularExpression *regyd = [NSRegularExpression regularExpressionWithPattern:@\"(^1(3[4-9]|4[7]|5[0-27-9]|7[8]|8[2-478])\\\\d{8}$)|(^1705\\\\d{7}$)\" options:NSRegularExpressionCaseInsensitive error:&error];\r\n    \r\n    NSRegularExpression *reglt = [NSRegularExpression regularExpressionWithPattern:@\"(^1(3[0-2]|4[5]|5[56]|7[6]|8[56])\\\\d{8}$)|(^1709\\\\d{7}$)\" options:NSRegularExpressionCaseInsensitive error:&error];\r\n\r\n    NSRegularExpression *regdx = [NSRegularExpression regularExpressionWithPattern:@\"(^1(33|53|77|8[019])\\\\d{8}$)|(^1700\\\\d{7}$)\" options:NSRegularExpressionCaseInsensitive error:&error];\r\n    \r\n    NSTextCheckingResult *resultyd = [regyd firstMatchInString:searchText options:0 range:NSMakeRange(0, [searchText length])];\r\n    if(resultyd!=nil)\r\n        return @\"移动\";\r\n    NSTextCheckingResult *resultlt= [reglt firstMatchInString:searchText options:0 range:NSMakeRange(0, [searchText length])];\r\n    if(resultlt!=nil)\r\n        return @\"联通\";\r\n    NSTextCheckingResult *resultdx = [regdx firstMatchInString:searchText options:0 range:NSMakeRange(0, [searchText length])];\r\n    if(resultdx!=nil)\r\n        return @\"电信\";\r\n   return @\"未知\";\r\n}"}}
{"actor":{"display_login":"hackxhj"}}