mirror of
https://github.com/chinnkarahoi/jd_scripts.git
synced 2024-06-05 19:32:47 +08:00
添加云函数 特有环境变量DEBUG
This commit is contained in:
parent
557c274909
commit
1798c314f6
@ -262,6 +262,9 @@ function downloadUrl(url = 'https://raw.githubusercontent.com/NobyDa/Script/mast
|
||||
function requireConfig() {
|
||||
return new Promise(resolve => {
|
||||
const file = 'jd_bean_sign.js';
|
||||
if (process.env.TENCENTCLOUD_RUNENV === 'SCF') {
|
||||
console.log(`云函数 特有环境变量DEBUG:${process.env.TENCENTCLOUD_RUNENV}`)
|
||||
}
|
||||
fs.access(file, fs.constants.W_OK, (err) => {
|
||||
resultPath = err ? '/tmp/result.txt' : resultPath;
|
||||
JD_DailyBonusPath = err ? '/tmp/JD_DailyBonus.js' : JD_DailyBonusPath;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user