mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-04-18 10:23:00 +08:00
Compare commits
9 Commits
121891e395
...
3e58bb4e18
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e58bb4e18 | ||
|
|
d507b07911 | ||
|
|
3fcfa5e7d9 | ||
|
|
ba4b018953 | ||
|
|
a069399a69 | ||
|
|
04c4fc06a3 | ||
|
|
b3b1fca083 | ||
|
|
d91b4dc822 | ||
|
|
005fe03104 |
1
PROFILE.md
Normal file
1
PROFILE.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Welcome to my GitHub profile!
|
||||||
7
jd_anan2_draw.js
Normal file
7
jd_anan2_draw.js
Normal file
File diff suppressed because one or more lines are too long
@@ -7,9 +7,9 @@ let answer = {
|
|||||||
'iF3BfLngHFuqe2D9yz5Jm4Tp5Zs': '蝎子',
|
'iF3BfLngHFuqe2D9yz5Jm4Tp5Zs': '蝎子',
|
||||||
'474EtGyg855gsY3oT3iuKGWHFFVi': '牛夫人',
|
'474EtGyg855gsY3oT3iuKGWHFFVi': '牛夫人',
|
||||||
'3peFJVJTbutC8bNiwTHGeU4o7z9x': '小甜甜',
|
'3peFJVJTbutC8bNiwTHGeU4o7z9x': '小甜甜',
|
||||||
'3iE75s9dPZ9ddH7FBM2JVYz9mFxL': '送分',
|
'2PEEot7FEjcsrNavB2oYBJMmSCxU': '浙江',
|
||||||
'39F7JKT8kA7oGUq5xDVbQSKmqJUL': '体育',
|
'3QDxHD1AwRBvgMnyWFg9W41UNyzn': '2',
|
||||||
'FFSTqdfWjpZqvZMU2tkfTVaxHRT': '黑土',
|
'2M6VhQF6QHRcvKCa1RYMsWFngtfi': '青蛇',
|
||||||
'21nwyKUBiSFkDg3GHY5ZUH1edeor': '萝卜',
|
'21nwyKUBiSFkDg3GHY5ZUH1edeor': '萝卜',
|
||||||
'CDuzjqVxJq1ZgfPsCruavjGrzfr': '后来',
|
'CDuzjqVxJq1ZgfPsCruavjGrzfr': '后来',
|
||||||
'xrcB9b7pMMCgvuHiyQxiMZMnUPg': '最长的电影',
|
'xrcB9b7pMMCgvuHiyQxiMZMnUPg': '最长的电影',
|
||||||
|
|||||||
7
jd_proxy_check.js
Normal file
7
jd_proxy_check.js
Normal file
File diff suppressed because one or more lines are too long
8
jd_sdlb_draw.js
Normal file
8
jd_sdlb_draw.js
Normal file
File diff suppressed because one or more lines are too long
@@ -25,7 +25,7 @@ else
|
|||||||
fi
|
fi
|
||||||
grep '6dylan6_20240905' /ql/data/config/task_before.sh >/dev/null 2>&1 || grep '6dylan6_20240905' /ql/config/task_before.sh > /dev/null 2>&1
|
grep '6dylan6_20240905' /ql/data/config/task_before.sh >/dev/null 2>&1 || grep '6dylan6_20240905' /ql/config/task_before.sh > /dev/null 2>&1
|
||||||
if [[ $? != 0 ]];then
|
if [[ $? != 0 ]];then
|
||||||
cp /ql/repo/${repo}/docker/task_before.sh /ql/config/ >/dev/null 2>&1 || cp /ql/data/repo/${repo}/docker/task_before.sh /ql/data/config/ > /dev/null 2>&1
|
#cp /ql/repo/${repo}/docker/task_before.sh /ql/config/ >/dev/null 2>&1 || cp /ql/data/repo/${repo}/docker/task_before.sh /ql/data/config/ > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
[[ $QL_DIR == /ql ]] && dir_root=$QL_DIR
|
[[ $QL_DIR == /ql ]] && dir_root=$QL_DIR
|
||||||
[[ -d $dir_root/data ]] && dir_data=$dir_root/data
|
[[ -d $dir_root/data ]] && dir_data=$dir_root/data
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
9
jx_ttlhb.js
Normal file
9
jx_ttlhb.js
Normal file
File diff suppressed because one or more lines are too long
@@ -2125,22 +2125,28 @@ function GetnickName2() {
|
|||||||
}
|
}
|
||||||
const got = require('got');
|
const got = require('got');
|
||||||
require('dotenv').config();
|
require('dotenv').config();
|
||||||
let exists = fs.existsSync('/ql/data/config/auth.json');
|
let Fileexists280 = fs.existsSync('/ql/data/db/keyv.sqlite');
|
||||||
let authFile="";
|
let Fileexists_ = fs.existsSync('/ql/data/config/auth.json');
|
||||||
if (exists)
|
let authFile = "";
|
||||||
authFile="/ql/data/config/auth.json"
|
if (Fileexists280)
|
||||||
|
authFile = "/ql/data/db/keyv.sqlite"
|
||||||
|
else if (Fileexists_)
|
||||||
|
authFile = "/ql/data/config/auth.json"
|
||||||
else
|
else
|
||||||
authFile="/ql/config/auth.json"
|
authFile = "/ql/config/auth.json"
|
||||||
|
|
||||||
|
|
||||||
const api = got.extend({
|
const api = got.extend({
|
||||||
prefixUrl: 'http://127.0.0.1:5600',
|
prefixUrl: 'http://127.0.0.1:5600',
|
||||||
retry: { limit: 0 },
|
retry: { limit: 0 },
|
||||||
});
|
});
|
||||||
|
|
||||||
async function getToken() {
|
async function getToken() {
|
||||||
const authConfig = JSON.parse(fs.readFileSync(authFile));
|
const authConfig = await fs.readFileSync(authFile);
|
||||||
return authConfig.token;
|
// console.log(authConfig.toString().match(/"token":"(.*?)",/)[1])
|
||||||
|
return authConfig.toString().match(/"token":"(.*?)",/)[1];
|
||||||
}
|
}
|
||||||
|
// getToken()
|
||||||
|
|
||||||
async function getEnvs(){
|
async function getEnvs(){
|
||||||
const token = await getToken();
|
const token = await getToken();
|
||||||
|
|||||||
Reference in New Issue
Block a user