Esempio n. 1
0
        public static WeixinResult ModifyStock(string cardId, int increase, int reduce)
        {
            TkDebug.AssertArgumentNullOrEmpty(cardId, "cardId", null);

            string            url     = WeUtil.GetUrl(WeCardConst.MODIFY_STOCK);
            WeCardModifyStock request = new WeCardModifyStock(cardId)
            {
                IncreaseStockValue = increase,
                ReduceStockValue   = reduce
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());

            return(result);
        }
Esempio n. 2
0
        public static WeixinResult ModifyStock(string cardId, int increase, int reduce)
        {
            TkDebug.AssertArgumentNullOrEmpty(cardId, "cardId", null);

            string url = WeUtil.GetUrl(WeCardConst.MODIFY_STOCK);
            WeCardModifyStock request = new WeCardModifyStock(cardId)
            {
                IncreaseStockValue = increase,
                ReduceStockValue = reduce
            };
            var result = WeUtil.PostToUri(url, request.WriteJson(), new WeixinResult());
            return result;
        }