Skip to content

Commit

Permalink
fix: start with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Dec 10, 2022
1 parent a15e58d commit f498480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ray.BiliBiliTool.Application/LoginTaskAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected void AddOrUpdateCkToQingLong(BiliCookie ckInfo)

_logger.LogInformation("用户不存在,新增cookie");
var lastNum = list.LastOrDefault()?.value.Split("__").LastOrDefault();
var newNum = int.Parse(lastNum ?? "0") + 1;
var newNum = int.Parse(lastNum ?? "-1") + 1;
var name = $"Ray_BiliBiliCookies__{newNum}";

var add = new AddQingLongEnv()
Expand Down

0 comments on commit f498480

Please sign in to comment.