checkAppVersion static method

Future<App> checkAppVersion(
  1. String androidKey,
  2. String iosKey
)

Implementation

static Future<App> checkAppVersion(String androidKey, String iosKey) {
  if (BytedeskUtils.isWeb) {
    // FIXME: 仅用于占位,待修改
    return BytedeskUserHttpApi().checkAppVersion(iosKey);
  } else if (BytedeskUtils.isAndroid) {
    return BytedeskUserHttpApi().checkAppVersion(androidKey);
  }
  return BytedeskUserHttpApi().checkAppVersion(iosKey);
}