public override object ExecuteHaveAuth() { AppInfo appInfo = this.App.Library.AppInfo; // 向数据池中查询QQ QQ qq = this.Simulator.DataPool.QQCollection.Where(p => p.Id == this.FromQQ).FirstOrDefault(); if (qq == null) { Logger.Instance.Error(appInfo.Name, TYPE_SEND_LINK, $"无法向 [QQ: {this.FromQQ}] 发送赞, 未查询到与该QQ的关系"); return(RESULT_NO_RELATIONSHIP); } else { if (qq.SetLink(this.Count)) { Logger.Instance.InfoSuccess(appInfo.Name, TYPE_SEND_LINK, $"成功为 [QQ: {this.FromQQ}] 点了 {this.Count} 个赞"); return(RESULT_SUCCESS); } else { Logger.Instance.Info(appInfo.Name, TYPE_SEND_LINK, $"为 [QQ: {this.FromQQ}] 的点赞数已满"); return(RESULT_LINK_OVERFLOW); } } }