restore static method
恢复购买 platform:平台,1:Android,2:iOS
Implementation
static Future<AWResponseModel<List<AWOrder>>?> restore(
AwPlatformType type) async {
if (type == AwPlatformType.android) {
return androidRestore();
}
if (type == AwPlatformType.ios) {
return iosRestore();
}
}