コード例 #1
0
        public static WeixinResult CodeUnavailable(string code, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

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

            return(result);
        }
コード例 #2
0
ファイル: WeCardInfo.cs プロジェクト: ZLLselfRedeem/zllinmitu
        public static WeixinResult CodeUnavailable(string code, string cardId)
        {
            TkDebug.AssertArgumentNullOrEmpty(code, "code", null);

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