leanCloud调用接口发送验证短信时走onError(Throwable throwable)这个异常方法,显示cn.leancloud.LCException code=999 detailMessage=null
完整代码如下
public static Integer postMsg(String phone) {
LeanCloud.initialize("xxx","xxx");
LCSMSOption option = new LCSMSOption();
option.setTtl(10);
option.setApplicationName("用户注册");
option.setOperation("短信验证");
LCSMS.requestSMSCodeInBackground(phone, option).subscribe(new Observer() {
@Override
public void onSubscribe(Disposable disposable) {
}
@Override
public void onNext(LCNull avNull) {
log.info("Result: Successfully sent verification code.");
}
@Override
public void onError(Throwable throwable) {
log.info("Result: Failed to send verification code. Reason: " + throwable.getMessage());
}
@Override
public void onComplete() {
}
});
return 1;
}
请问这个怎么解决