Ejemplo n.º 1
0
        public static WeixinResult LuckyMoneyUpdate(string code, string cardId, int balance)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string             url     = WeUtil.GetUrl(WeCardConst.LUCKY_MONEY_UPDATE);
            WeLuckyMoneyUpdate request = new WeLuckyMoneyUpdate(code, balance)
            {
                CardId = cardId
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
Ejemplo n.º 2
0
        public static WeixinResult LuckyMoneyUpdate(string code, string cardId, int balance)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

            string url = WeUtil.GetUrl(WeCardConst.LUCKY_MONEY_UPDATE);
            WeLuckyMoneyUpdate request = new WeLuckyMoneyUpdate(code, balance) { CardId = cardId };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
            return result;
        }