Пример #1
0
        /// <summary>
        /// 定制跟单
        /// </summary>
        /// <param name="info"></param>
        public void TogetherFollow_AfterTranCommit(TogetherFollowerRuleInfo info)
        {
            if (info == null)
            {
                return;
            }
            else if (string.IsNullOrEmpty(info.CreaterUserId) || string.IsNullOrEmpty(info.FollowerUserId))
            {
                return;
            }
            UserBalanceManager userBalanceManger = new UserBalanceManager();
            var createUserInfo = userBalanceManger.GetUserRegister(info.CreaterUserId);

            if (createUserInfo == null)
            {
                return;
            }
            var followUserInfo = userBalanceManger.GetUserRegister(info.FollowerUserId);

            if (followUserInfo == null)
            {
                return;
            }
            var gameCodeName = string.Empty;
            var gameTypeName = string.Empty;

            gameCodeName = BusinessHelper.FormatGameCode(info.GameCode);
            if (!string.IsNullOrEmpty(info.GameType))
            {
                gameTypeName = BusinessHelper.FormatGameType_Each(info.GameCode, info.GameType);
            }
            SiteMessageControllBusiness siteMsgBusiness = new SiteMessageControllBusiness();
            var array = new string[] { "[UserName]=" + followUserInfo.DisplayName + "", "[CreateUser]=" + createUserInfo.DisplayName + "", "[GameCodeName]=" + gameCodeName + "", "[GameTypeName]=" + gameTypeName + "" };

            siteMsgBusiness.DoSendSiteMessage(info.FollowerUserId, string.Empty, "ON_User_Scheme_Together_FollowerRule", array);
        }
Пример #2
0
 public void TogetherFollow_AfterTranCommit(TogetherFollowerRuleInfo info)
 {
     UsefullHelper.TryDoAction(() => UpdateProfileFollower_Active(info.CreaterUserId, info.FollowerUserId, info.GameCode, info.GameType, 1));
     UsefullHelper.TryDoAction(() => UpdateProfileFollower_Passive(info.CreaterUserId, info.FollowerUserId, info.GameCode, info.GameType, 1));
 }