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

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