我在我们的应用程序中设置了Universal Links,我无法在应用安装上从我的服务器检索apple-app-site-association文件.设备控制台在安装过程中尝试检索文件时出现以下错误:
Rejecting URL 'https://example.com/apple-app-site-association' for auth method 'NSURLAuthenticationMethodServerTrust': -6754/0xFFFFE59E kAuthenticationErr
Run Code Online (Sandbox Code Playgroud)
我可以使用相同的设备在Safari中成功检索文件.它通过https托管,并带有标准的verisign颁发的EV证书.在app install之外检索文件时,我没有收到任何SSL错误,因此我确信在服务器端正确配置了证书.
可能导致此错误的原因是什么?
所以这是我的第一个java程序,但我已经完成了几年的c ++.我写了我认为应该有用的东西,但实际上并没有.所以我有一个规定,必须为这个电话写一个方法:
tree.insertNode(value);
Run Code Online (Sandbox Code Playgroud)
其中value是int.我想以递归的方式写它,原因很明显,所以我不得不做一个解决方法:
public void insertNode(int key) {
Node temp = new Node(key);
if(root == null) root = temp;
else insertNode(temp);
}
public void insertNode(Node temp) {
if(root == null)
root = temp;
else if(temp.getKey() <= root.getKey())
insertNode(root.getLeft());
else insertNode(root.getRight());
}
Run Code Online (Sandbox Code Playgroud)
谢谢你的建议.