GetUrl method

dynamic GetUrl()

Implementation

GetUrl() async {
  print("开始发起请求链接");
  String appFlyerId = await widget.fetchSpKeyAppflyerId();
  WNJMain.to.setAppsflyerId(appFlyerId);
  String spKey = await WNJMain.to.getSpkey();
  if (spKey.isNotEmpty) {
    print("加载之前的");
    url =
        "${WNJMain.to.nu}/${spKey.replaceAll('.png', '').replaceAll('.jpg', '')}?${getRandomString()}fv=v1.0.0&${getRandomString()}ci=${WNJMain.to.idfaString}";
    print("设置 URL: $url");
    setState(() {});
    readyForNext();
  } else {
    print("加载新的");
    doNew();
  }
}