Example #1
0
        // Token: 0x060132C0 RID: 78528 RVA: 0x004E2A54 File Offset: 0x004E0C54
        private static void SendIosPromotingAppleSubscribeReq(PDSDKGood goods)
        {
            int realGoodsId = RMBStoreoreGoodsIdTools.GetRealGoodsId(goods.m_ID);
            GiftStoreAppleSubscribeNetTask giftStoreAppleSubscribeNetTask = new GiftStoreAppleSubscribeNetTask(realGoodsId);

            giftStoreAppleSubscribeNetTask.EventOnStop += delegate(Task task)
            {
                int result = (task as GiftStoreAppleSubscribeNetTask).Result;
                if (result != 0)
                {
                    CommonUIController.Instance.ShowErrorMessage(result, 2f, null, true);
                }
                else
                {
                    PDSDK.Instance.DoPromotingPay(goods.m_name, 1, goods.m_ID, goods.m_registerID, goods.m_price, string.Empty, goods.m_desc);
                }
            };
            giftStoreAppleSubscribeNetTask.Start(null);
        }
Example #2
0
        // Token: 0x060132BD RID: 78525 RVA: 0x004E2968 File Offset: 0x004E0B68
        public static void SendIosPromotingReq(PDSDKGood goods)
        {
            StoreType storeTypeId = (StoreType)RMBStoreoreGoodsIdTools.GetStoreTypeId(goods.m_ID);

            if (storeTypeId == StoreType.StoreType_Gift)
            {
                if (goods.m_type == PDSDKGoodType.IosSubscribe)
                {
                    IosPromotingPay.SendIosPromotingAppleSubscribeReq(goods);
                }
                else
                {
                    IosPromotingPay.SendIosPromotingGiftReq(goods);
                }
            }
            else if (storeTypeId == StoreType.StoreType_Recharge)
            {
                IosPromotingPay.SendIosPromotingItemReq(goods);
            }
        }