Ejemplo n.º 1
0
        /// <summary>
        /// 当会员持卡消费后,开发者调用该接口更新会员信息。
        /// </summary>
        /// <param name="updateReq">更新信息</param>
        /// <returns></returns>
        public WxUpdateMemberCardUserInfoResp UpdateMemberCardUserInfo(WxUpdateMemberCardUserInfoReq updateReq)
        {
            var req = new OsHttpRequest();

            req.HttpMothed = HttpMothed.POST;
            req.AddressUrl = string.Concat(m_ApiUrl, "/card/membercard/updateuser");
            req.CustomBody = JsonConvert.SerializeObject(updateReq);

            return(RestCommonOffcial <WxUpdateMemberCardUserInfoResp>(req));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 当会员持卡消费后,开发者调用该接口更新会员信息。
        /// </summary>
        /// <param name="updateReq">更新信息</param>
        /// <returns></returns>
        public async Task <WxUpdateMemberCardUserInfoResp> UpdateMemberCardUserInfoAsync(WxUpdateMemberCardUserInfoReq updateReq)
        {
            var req = new OsHttpRequest
            {
                HttpMethod = HttpMethod.Post,
                AddressUrl = string.Concat(m_ApiUrl, "/card/membercard/updateuser"),
                CustomBody = JsonConvert.SerializeObject(updateReq)
            };

            return(await RestCommonOffcialAsync <WxUpdateMemberCardUserInfoResp>(req));
        }