apiAppLogin static method
dynamic
apiAppLogin(
- dynamic dict,
- dynamic callBack
登陆账号
Implementation
static apiAppLogin(dict, callBack) {
DioManager().request<dynamic>(RequestType.POST, RequestApi.apiAppLogin,
params: dict, onSuccess: (data) {
PrefUtils.remove(SPKey.firstRechargeState);
// onSuccess
callBack(data);
}, onError: (error) {
// when called , already show toast, then do another things
}, onStart: () {
// onStart
}, onFinish: () {
// onFinish
});
}