apiAppLogin static method

dynamic apiAppLogin(
  1. dynamic dict,
  2. 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
  });
}