拼车信息请发到 /go/cosub 节点。

如果没有发送到 /go/cosub,那么会被移动到 /go/pointless 同时账号会被降权。如果持续触发这样的移动,会导致账号被禁用。
henryshen233
V2EX  ›  Surge

Mac App 获取爱词霸的 API 返回的结果通过 Surge 显示马上 completed,但是 GUI 显示结果却很慢,至少得 5 秒后显示

  •  
  •   henryshen233 · Apr 30, 2017 · 745 views
    This topic created in 3342 days ago, the information mentioned may be changed or developed.
    RT,下面放代码
    2 replies    2017-04-30 15:14:38 +08:00
    henryshen233
        1
    henryshen233  
    OP
       Apr 30, 2017
    - (IBAction)searchButton:(id)sender {
    NSString *searchContent = _searchWord.stringValue;
    NSString *urlStr = [[NSString alloc] initWithFormat:@"http://dict-co.iciba.com/api/dictionary.php?w=%@&type=json&key=*********************", searchContent];
    NSURL *url = [[NSURL alloc] initWithString:urlStr];
    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
    request.HTTPMethod = @"GET";
    request.timeoutInterval = 60;
    NSURLSession *session = [NSURLSession sharedSession];
    NSURLSessionDataTask *task = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
    NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
    NSString *wordName = [dict valueForKey:@"word_name"];
    _searchResult.stringValue = wordName;
    }];
    [task resume];
    }
    henryshen233
        2
    henryshen233  
    OP
       Apr 30, 2017
    请教各位朋友,希望有朋友能够抽出宝贵时间看一眼,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3210 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 11:16 · PVG 19:16 · LAX 04:16 · JFK 07:16
    ♥ Do have faith in what you're doing.