Beispiel #1
0
        public KFRankData HRankUpdate(int rankType, int grade, int roleID, int zoneID, string roleName, byte[] roleData)
        {
            KFRankData result;

            lock (this._lockRank)
            {
                KFRankData myData = new KFRankData();
                myData.RankType = rankType;
                myData.Rank     = -1;
                myData.ZoneID   = zoneID;
                myData.RoleID   = roleID;
                myData.RoleName = roleName;
                myData.Grade    = grade;
                myData.RoleData = roleData;
                myData.RankTime = TimeUtil.NowDateTime();
                myData.ServerID = this._ClientInfo.ServerId;
                IAllyService kuaFuService = this.GetKuaFuService(false);
                if (null == kuaFuService)
                {
                    result = null;
                }
                else
                {
                    try
                    {
                        kuaFuService.RankGradeUpdate(this._ClientInfo.ServerId, myData);
                    }
                    catch (Exception ex)
                    {
                        this.ResetKuaFuService();
                    }
                    result = null;
                }
            }
            return(result);
        }