Bladeren bron

1.增加广告回调

tags/0.0.17+5
“yanghuaxuan” 3 jaren geleden
bovenliggende
commit
ffbe719126
2 gewijzigde bestanden met toevoegingen van 16 en 0 verwijderingen
  1. +15
    -0
      lib/util/advertising_util.dart
  2. +1
    -0
      lib/zhiying_comm.dart

+ 15
- 0
lib/util/advertising_util.dart Bestand weergeven

@@ -0,0 +1,15 @@
import 'package:flutter/cupertino.dart';

import 'application.dart';

class AdvertisingUtils {
static Future init() async {
await Application.doStringParamsMethod("init_advertising", data: {});
//await Application.doStringParamsMethod("init_advertising", data: {"androidAppId": "5173995", "iosAppId": "5167929", "appName": "智莺生活"});
}

static Future openSplashAd() async {
await Application.doStringParamsMethod("advertising_splash", data: {'androidCodeId': "887478896", 'iosCodeId': "887478962"}, callback: (value) {});
}
}


+ 1
- 0
lib/zhiying_comm.dart Bestand weergeven

@@ -54,3 +54,4 @@ export 'package:zhiying_comm/util/shared_prefe_util.dart';
export 'package:fluttertoast/fluttertoast.dart';
export 'package:zhiying_comm/util/launcher_wx_mini_program.dart';
export 'package:zhiying_comm/util/application.dart';
export 'util/advertising_util.dart';

Laden…
Annuleren
Opslaan