Exemple #1
0
    /// <summary>
    /// 展示支付
    /// </summary>
    /// <param name="arg"></param>
    public override void ShowPayment(object[] arg)
    {
        int    num     = (int)(arg[2]);
        int    price   = (int)(arg[4]);
        int    good_id = (int)(arg[1]);
        string pay_id  = "" + (int)(arg[0]);
        string tittle  = "" + num + "个钻石";

#if IOSPP && !UNITY_EDITOR
        Bonjour.exchangeGoods(price, pay_id, tittle, "" + Role.role.GetBaseProperty().m_iPlayerId, channel_id);
#endif
    }
Exemple #2
0
    public static int SDKUniPayAsyn(string cooOrderSerial, int productId, string productName, float productPrice, int productCount, int zoneID, string roleID)
    {
        int ret = 0;

#if SDK_91
        // TODO: API:异步支付(订单号,道具ID,道具名,价格,数量,分区:不超过20个英文或数字的字符串)
        ret = CSDKUniPayAsyn(cooOrderSerial, roleID, productName, productPrice, productCount, zoneID.ToString());
#elif SDK_PP
        string userID = SharedLoginGameKeys.Inst.UserID;
        Bonjour.exchangeGoods(productPrice, cooOrderSerial, productName, userID + "," + roleID, zoneID);
#elif SDK_HM
        Entry.ZHPayStartOrder(cooOrderSerial, productName, Text.SharedShowStrings.斗战西游.ToString(), (int)productPrice, Entry.ZHPayGetUserId() + "," + roleID);
#elif SDK_AB
        Entry.checkoutWithOrder(cooOrderSerial, productId, (int)productPrice, SDKUserName + "," + roleID, "");
#elif SDK_TBT
        lastOrderNumber = cooOrderSerial;
        SDK.TBPayRMB((int)productPrice, cooOrderSerial, SDK.TBUserID() + "," + roleID);
#endif
        return(ret);
    }