public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            RMBStoreoreGoodsIdTools o = new RMBStoreoreGoodsIdTools();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int GetStoreTypeId_s(IntPtr l)
    {
        int result;

        try
        {
            string goodsId;
            LuaObject.checkType(l, 1, out goodsId);
            int storeTypeId = RMBStoreoreGoodsIdTools.GetStoreTypeId(goodsId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, storeTypeId);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
            }
        }