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; } } }
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(); //} }
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); } }
public void getItems() { GiftCardProxy.getInstance().sendFetchCard(code); }