apiGetSmsCode static method
发送短信验证码
Implementation
static apiGetSmsCode(dict, callBack, {Function(String msg)? onMessage}) {
DioManager().request<dynamic>(RequestType.POST, RequestApi.apiGetSmsCode,
params: dict, onSuccess: (data) {
// onSuccess
callBack(data);
}, onError: (error) {
// when called , already show toast, then do another things
}, onStart: () {
// onStart
}, onFinish: () {
// onFinish
}, onMessage: (msg) {
// onMessage
if (onMessage != null) {
onMessage(msg);
}
});
}