|
@@ -129,36 +129,14 @@ public class ManaIAP : MonoBehaviour, IStoreListener
|
|
|
|
|
|
public static void InitializeAlipay()
|
|
|
{
|
|
|
- try
|
|
|
+ foreach (var attribute in ManaData.GetIAPConfig())
|
|
|
{
|
|
|
- foreach (var attribute in ManaData.GetIAPConfig())
|
|
|
- {
|
|
|
- ProductList.Add(attribute[1].Value);
|
|
|
+ ProductList.Add(attribute[1].Value);
|
|
|
|
|
|
- ProductIdDic.Add(attribute[5].Value, attribute[1].Value);
|
|
|
- PackNameDic.Add(attribute[1].Value, attribute[5].Value);
|
|
|
- }
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- ManaDebug.Log("001 " + e.ToString());
|
|
|
+ ProductIdDic.Add(attribute[5].Value, attribute[1].Value);
|
|
|
+ PackNameDic.Add(attribute[1].Value, attribute[5].Value);
|
|
|
}
|
|
|
|
|
|
- try
|
|
|
- {
|
|
|
- foreach (var attribute in ManaData.GetIAPConfig())
|
|
|
- {
|
|
|
- ManaDebug.Log("0012 " + attribute[1].Value + " " + attribute[5].Value);
|
|
|
- ProductList.Add(attribute[1].Value);
|
|
|
-
|
|
|
- ProductIdDic.Add(attribute[5].Value, attribute[1].Value);
|
|
|
- PackNameDic.Add(attribute[1].Value, attribute[5].Value);
|
|
|
- }
|
|
|
- }
|
|
|
- catch (Exception e)
|
|
|
- {
|
|
|
- ManaDebug.Log("002 " + e.ToString());
|
|
|
- }
|
|
|
AliplayManager.Instance.Init();
|
|
|
}
|
|
|
|