Ejemplo n.º 1
0
        public void init(JSONNode d)
        {
            if (d["tcyb_day"] != null)
            {
                moneyPayed = d["tcyb_day"].AsInt / 10;
                debug.Log("当日充值:" + moneyPayed);
            }

            if (sended)
            {
                return;
            }

            if (d["1000"] == null)
            {
                return;
            }

            d = d["1000"];
            if (d["cards"] != null)
            {
                debug.Log(" cards :" + d["cards"]);
                JSONArray arr = d["cards"].AsArray;
                foreach (JSONNode cardStr in arr)
                {
                    GiftCardProxy.getInstance().sendFetchCard(cardStr.ToString());
                    sended = true;
                }
            }
        }
Ejemplo n.º 2
0
        public GiftCardsApp()
        {
            //string path = "sid=" + Globle.curServerD.sid + "&uid=" + PlayerModel.getInstance().uid + "&cust=";
            //HttpAppMgr.POSTSvrstr(Globle.curServerD.do_url + "?paycard", path + 4, onHttpCallback);
            //debug.Log("::::::::::::::::::" + Globle.curServerD.do_url + "?paycard" + path + 1);
            //return;

            //if (PlayerModel.getInstance().lvl > 3)
            //{
            getRechangeCard();
            GiftCardProxy.getInstance().sendLoadItemCardInfo();
            //}
        }
Ejemplo n.º 3
0
 public void sendInputGiftCode(string code)
 {
     if (code.Length == 5)
     {
         giftCard.getShortCardsCode(code);
     }
     else if (code.Length == 7)
     {
         giftCard.getSevenCardsCode(code);
     }
     else
     {
         GiftCardProxy.getInstance().sendFetchCard(code);
     }
 }
Ejemplo n.º 4
0
 public void getItems()
 {
     GiftCardProxy.getInstance().sendFetchCard(code);
 }