添加云函数 特有环境变量DEBUG
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user