authBack method

void authBack({
  1. SuccessBack? successBack,
})

Implementation

void authBack({SuccessBack? successBack}) {
  taskRunTimer?.cancel();
  taskListener(true, "RE-CORE", "授权等待开始,为防止认证拥挤,本次授权需等待15秒", null);
  XbrNetworkFreight.auth(
    tmsAppId: tmsAppId,
    appSecurity: appSecurity,
    enterpriseSenderCode: enterpriseSenderCode,
    environment: environment,
    returnBack: (ReqReturn ret) {
      if (ret.success == false) {
        taskListener(false, ret.code, "认证授权未成功:${ret.msg}", null);
        return;
      }
      if (successBack != null) successBack(ret.code??OTHER_ERR_CODE,ret.msg??"",ret.data??<ShippingNoteInfo>[]);
    },
  );
}