我下载了Unity sdk,并且申请了短信签名(通过了),然后写了这段代码
AVCloud.RequestSMSCodeAsync(phoneNumber,applicationName,"验证",10).ContinueWith(t =>
{
if(!t.Result)
{
// 调用成功
}
});
然后报错:NullReferenceException: Object reference not set to an instance of an object
LeanCloud.Core.Internal.AVCommand..ctor (System.String relativeUri, System.String method, System.String sessionToken, System.Collections.Generic.IList1[T] headers, System.IO.Stream stream, System.String contentType) (at <59b2a664b49d4770b0665da29267dfdc>:0)
LeanCloud.Core.Internal.AVCommand..ctor (System.String relativeUri, System.String method, System.String sessionToken, System.Collections.Generic.IList
1[T] headers, System.Collections.Generic.IDictionary`2[TKey,TValue] data) (at <59b2a664b49d4770b0665da29267dfdc>:0)
LeanCloud.AVCloud.RequestSMSCodeAsync (System.String mobilePhoneNumber, System.String name, System.String op, System.Int32 ttl, System.Threading.CancellationToken cancellationToken) (at <59b2a664b49d4770b0665da29267dfdc>:0)
LeanCloud.AVCloud.RequestSMSCodeAsync (System.String mobilePhoneNumber, System.String name, System.String op, System.Int32 ttl) (at <59b2a664b49d4770b0665da29267dfdc>:0)
是我没使用对吗?请问如何使用