public async Task <APIResult> UpLoadAllScoreInfo(AllTaskInfoRegLstDto param)
 {
     try
     {
         if (param != null && param.TaskInfoRegDtoLst != null)
         {
             foreach (var item in param.TaskInfoRegDtoLst)
             {
                 if (item.TPType == "C")//自定义任务
                 {
                     await CustomizedTaskCheck(item.CustomizedTask);
                 }
                 else
                 {
                     await SaveCheckResult(item.ScoreCheckResult);
                 }
             }
         }
         return(new APIResult {
             Body = "", ResultCode = ResultType.Success, Msg = ""
         });
     }
     catch (Exception ex)
     {
         return(new APIResult {
             Body = "", ResultCode = ResultType.Failure, Msg = ex.Message
         });
     }
 }
Example #2
0
 public Task <APIResult> UpLoadAllScoreInfo([FromBody] AllTaskInfoRegLstDto param)
 {
     return(_tourService.UpLoadAllScoreInfo(param));
 }