Skip to content

Commit

Permalink
remove codes that did not pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Jan 23, 2025
1 parent 2bdb07c commit 66c56b6
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/Ray.BiliBiliTool.Application/VipBigPointAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -466,26 +466,7 @@ private async Task<VipTaskInfo> OgvWatchAsync(VipTaskInfo info)
await TryReceive(targetTask.task_code);
}

_logger.LogInformation("开始任务");
var startResult = await _vipApi.StartOgvWatchAsync(new StartOgvWatchRequest());

_logger.LogInformation("开始浏览");
await Task.Delay(10 * 1000);

_logger.LogInformation("开始上报");
var request = new CompleteOgvWatchRequest(startResult.Data.task_id, startResult.Data.token); // todo: sign
var re = await _vipApi.CompleteOgvWatchAsync(request);

//确认
if (re.Code == 0)
{
var infoResult = await _vipApi.GetTaskListAsync();
if (infoResult.Code != 0) throw new Exception(infoResult.ToJsonStr());
info = infoResult.Data;
targetTask = GetTarget(info, moduleCode, taskCode);

_logger.LogInformation("确认:{re}", targetTask.state == 3 && targetTask.complete_times >= 1);
}
_logger.LogInformation("暂未实现");

return info;
}
Expand Down

0 comments on commit 66c56b6

Please sign in to comment.