private void Run() { using (var acitivtyClient = new ActivityClient()) { #region 世界杯活动清算 //获取世界杯活动 var activity = acitivtyClient.GetWorldCup2018Activity(); if (activity.Success && activity.Result != null) { //获取今天发布'结果'的题目 列表 var questions = DalActivity.SearchTodayReleaseQuestionAnswerList(activity.Result.QuestionnaireID)?.ToList(); if (questions != null) { if (questions.Count > 0) { //刷新缓存 RefreshCache(activity?.Result?.PKID ?? 0); } //循环问题 questions.ForEach(question => { UserAnswerClear(question, activity.Result.PKID); }); } } #endregion } }