Esempio n. 1
0
        public void NotifyFollowSameProjUser()
        {
            var uid           = _FootPrintService.Uid;
            var pid           = _FootPrintService.Pid;
            var focusProjUids = _FootPrintRepository.GetFollowAndFavoriteUids(pid).Where(p => p != uid).Distinct().ToArray();

            if (focusProjUids.Any())
            {
                var projName = ProjectSource.name;
                var content  = string.Format("您的在跟/收藏项目{0}新增1人也在跟进,马上查看跟进状况,获得更多签单帮助!", projName);
                var remind   = new PushRemindRequest()
                {
                    Title       = "足聊",
                    Body        = content,
                    MessageType = MessageType.Once,
                    URL         = "http://m.fc.tgnet.com/ProjFollow/List",
                };
                _NotifyServiceProxy.PushRemind(remind, focusProjUids);
            }
        }
Esempio n. 2
0
        public void OnProjUpdate(long pid)
        {
            var proj = _ProjSourceManager.GetSource(pid);

            if (proj != null)
            {
                var name          = proj.name;
                var focusProjUids = _FootPrintRepository.GetFollowAndFavoriteUids(pid).Distinct().ToArray();
                if (focusProjUids.Any())
                {
                    var content = string.Format("您的在跟/收藏项目{0}有新的动态/联系人,点击查看最新资料!", name);
                    var remind  = new PushRemindRequest()
                    {
                        Title       = "足聊",
                        Body        = content,
                        MessageType = MessageType.Once,
                        URL         = "http://m.fc.tgnet.com/ProjFollow/List",
                    };
                    _NotifyServiceProxy.PushRemind(remind, focusProjUids);
                }
            }
        }