我正在尝试通过Apple Search Validation Tool,我遇到了apple-app-site-association的问题.
由于某种原因,机器人无法找到我的文件.但是如果你打开它就在那里.
这不是格式化问题,因为甚至找不到文件.我有https所以不需要签署我的文件.
如文档中所述,我的文件没有任何扩展名.
有人遇到了类似的问题,并向Apple Developer foruns询问,但这对我没有帮助.
我的网址是https://ps3looke.ottvs.com.br/apple-app-site-association
我试着用cUrl检查它,一切看起来都很正常:
Caios-MacBook-Air:~ caiocoan$ curl -I https://ps3looke.ottvs.com.br/apple-app-site-association
HTTP/1.1 200 OK
Content-Length: 135
Content-Type: application/json
Last-Modified: Tue, 27 Oct 2015 15:36:52 GMT
Accept-Ranges: bytes
ETag: "f81e714dcd10d11:0"
Server: Microsoft-IIS/8.5
X-Powered-By: ASP.NET
Date: Wed, 04 Nov 2015 20:43:25 GMT
Run Code Online (Sandbox Code Playgroud)
我可能做错了什么,或者我需要做什么的任何想法?
所以,我对 C# 很陌生,我正在尝试使用自定义比较器对数组进行排序。
我创建了一个类:
class MySorter : IComparer
{
public int Compare(object x, object y)
{
var chars = "jngmclqskrzfvbwpxdht";
if (chars.IndexOf((char)x) < chars.IndexOf((char)y))
return -1;
return chars.IndexOf((char)x) > chars.IndexOf((char)y) ? 1 : 0;
}
}
Run Code Online (Sandbox Code Playgroud)
我有一个充满单词的数组。我可以使用此比较进行排序的准确程度如何?