Example #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);
        }
Example #2
0
        protected override IWRespBase DoForRequest_Default(WReqBase request)
        {
            var response = RequestToKey.GoGKey(config, ReplyType.Default, string.Empty, request);

            return(response);
        }
Example #3
0
        protected override IWRespBase DoForRequest_Event_Click(WReqEventClick request)
        {
            var gResponse = RequestToKey.GoGKey(config, ReplyType.AutoReplay, request.EventKey, request);

            return(gResponse);
        }
Example #4
0
        private IWRespBase DoForScan(WReqBase request, long sceneId)
        {
            var gResponse = RequestToKey.GoGKey(config, ReplyType.Scan, sceneId.ToString(), request);

            return(gResponse);
        }
Example #5
0
        protected override IWRespBase DoForRequest_Text(WReqText request)
        {
            var gResponse = RequestToKey.GoGKey(config, ReplyType.AutoReplay, request.Content, request);

            return(gResponse);
        }