diff --git a/Assets/BannerController.cs b/Assets/BannerController.cs index 56677ad5..784b8a2e 100644 --- a/Assets/BannerController.cs +++ b/Assets/BannerController.cs @@ -13,7 +13,7 @@ public class BannerController : MonoBehaviour // Start is called before the first frame update private List itemList; private List standardPositions; - private List list; + private List list; private int currentIndex = 1; void Awake() { @@ -108,7 +108,7 @@ public class BannerController : MonoBehaviour } async void GetList() { - var res = await ConfigHelper.mapApi.GetRecommendAreaList(); + var res = await ConfigHelper.mapApi.GetRecommendList(); if (res.result) { if (res.data.Count >= 3) @@ -123,13 +123,14 @@ public class BannerController : MonoBehaviour } } - public void Initial(List list) + public void Initial(List list) { int index = 0; foreach (CanvasGroup c in itemList) { var area = list[index++]; - c.GetComponent().Initial(area); + + c.GetComponent().Initial(area); c.GetComponent