Beispiel #1
0
        protected override IWRespBase DoForRequest_Event_Subscribe(WReqEventSubscribe request)
        {
            if (user != null)
            {
                TxtLogServices.WriteTxtLogEx("WeiXinConversation", "DoForRequest_Event_Subscribe");
                user.FollowState       = (int)WxUserState.Attention;
                user.LastSubscribeDate = DateTime.Now;
                user.SubscribeTimes    = user.SubscribeTimes + 1;
                bool result = WeiXinAccountService.EditWXInfo(user);
                TxtLogServices.WriteTxtLogEx("WeiXinConversation", "DoForRequest_Event_Subscribe REsult:{0}", result?"1":"0");
            }
            var gResponse = RequestToKey.GoGKey(config, ReplyType.Subscribe, string.Empty, request);

            return(gResponse);
        }
Beispiel #2
0
 /// <summary>
 /// 处理事件推送--订阅
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 protected virtual IWRespBase DoForRequest_Event_Subscribe(WReqEventSubscribe request)
 {
     return(null);
 }