Skip to content

Commit

Permalink
feat:[RayWangQvQ#358]compatible with old version of qinglong
Browse files Browse the repository at this point in the history
  • Loading branch information
RayWangQvQ committed Dec 12, 2022
1 parent 4bba37a commit 923d541
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Ray.BiliBiliTool.Application/LoginTaskAppService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,13 @@ private bool GetToken(out string token)
token = "";

var qlDir = _configuration["QL_DIR"] ?? "/ql";
string authFile;

string authFile= qlDir;
if (_hostingEnvironment.ContentRootPath.Contains($"{qlDir}/data/"))
authFile = Path.Combine(qlDir, "data");

authFile = Path.Combine(qlDir, "config/auth.json");
{
authFile = Path.Combine(authFile, "data");
}
authFile = Path.Combine(authFile, "config/auth.json");

if (!File.Exists(authFile))
{
Expand Down

0 comments on commit 923d541

Please sign in to comment.