1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2025-07-17 09:54:19 +08:00
This commit is contained in:
2024
2025-03-09 09:21:21 +08:00
parent 5ff0d6be26
commit dedaf4f08c
3 changed files with 2 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ const fs = require('fs');
let Fileexists280 = fs.existsSync('/ql/data/db/keyv.sqlite');
let Fileexists = fs.existsSync('/ql/data/config/auth.json');
let authFile = "";
if (Fileexists280)
if (Fileexists280&&process.env.QL_BRANCH.slice(1,5)>=2.18)
authFile = "/ql/data/db/keyv.sqlite"
else if (Fileexists)
authFile = "/ql/data/config/auth.json"

File diff suppressed because one or more lines are too long

View File

@@ -2128,7 +2128,7 @@ require('dotenv').config();
let Fileexists280 = fs.existsSync('/ql/data/db/keyv.sqlite');
let Fileexists_ = fs.existsSync('/ql/data/config/auth.json');
let authFile = "";
if (Fileexists280)
if (Fileexists280&&process.env.QL_BRANCH.slice(1,5)>=2.18)
authFile = "/ql/data/db/keyv.sqlite"
else if (Fileexists_)
authFile = "/ql/data/config/auth.json"