示例#1
0
 /// <summary>
 /// 支付
 /// </summary>
 public void Plat_Pay(PayInfo payInfo)
 {
     //if (!Const.IsSDK)
     //{
     //    return;
     //}
     tools.Plat_Pay(payInfo);
 }
示例#2
0
 static int Pay(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         ChannelPlatform.PayInfo arg0 = (ChannelPlatform.PayInfo)ToLua.CheckObject <ChannelPlatform.PayInfo>(L, 1);
         ChannelMgr.Pay(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#3
0
    static int get_role_ID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChannelPlatform.PayInfo obj = (ChannelPlatform.PayInfo)o;
            string ret = obj.role_ID;
            LuaDLL.lua_pushstring(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index role_ID on a nil value"));
        }
    }
示例#4
0
    static int set_change_rate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChannelPlatform.PayInfo obj = (ChannelPlatform.PayInfo)o;
            int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
            obj.change_rate = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index change_rate on a nil value"));
        }
    }
示例#5
0
    static int set_product_ID(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChannelPlatform.PayInfo obj = (ChannelPlatform.PayInfo)o;
            string arg0 = ToLua.CheckString(L, 2);
            obj.product_ID = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index product_ID on a nil value"));
        }
    }
示例#6
0
    static int get_change_rate(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChannelPlatform.PayInfo obj = (ChannelPlatform.PayInfo)o;
            int ret = obj.change_rate;
            LuaDLL.lua_pushinteger(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index change_rate on a nil value"));
        }
    }
示例#7
0
    static int get_product_price(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            ChannelPlatform.PayInfo obj = (ChannelPlatform.PayInfo)o;
            float ret = obj.product_price;
            LuaDLL.lua_pushnumber(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index product_price on a nil value"));
        }
    }
示例#8
0
    static int _CreateChannelPlatform_PayInfo(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 0)
            {
                ChannelPlatform.PayInfo obj = new ChannelPlatform.PayInfo();
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: ChannelPlatform.PayInfo.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
示例#9
0
 public void Plat_Pay(PayInfo payInfo)
 {
     javaAccount.CallStatic("pay", JsonUtil.toJson(payInfo));
 }
示例#10
0
文件: iOS.cs 项目: maple0303/chess
        public void Plat_Pay(PayInfo payInfo)
        {
#if USE_CHANNEL_SDK
            Pay(JsonUtil.toJson(payInfo));
#endif
        }