/// <summary>
        /// 执行任务
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        protected override WlyTaskInfo InternalRun(WlyEntity entity)
        {
            // 升级军团科技
            var dmGuid = entity.DMGuid;

            if (WlyGroupMgr.Upgrade(dmGuid))
            {
                return(new WlyTaskInfo(ID, true));
            }

            return(new WlyTaskInfo(ID, WlyUtilityBiz.GetRefreshTime()));
        }
        /// <summary>
        /// 执行任务
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        protected override WlyTaskInfo InternalRun(WlyEntity entity)
        {
            var dmGuid = entity.DMGuid;
            var index  = ((SubEntity)entity).Index;
            var name   = $"海潮{(index / 200) + 1:D2}番队";
            var result = WlyGroupMgr.Join(dmGuid, name);

            if (result)
            {
                return(new WlyTaskInfo(ID, true));
            }

            throw new InvalidOperationException("加入军团失败");
        }