fix.
This commit is contained in:
parent
ea8b6ad451
commit
757c5f132d
|
@ -9,7 +9,7 @@ const { AUTH, DEFAULT_TARGET } = require('../config')
|
||||||
const { tg_token } = AUTH
|
const { tg_token } = AUTH
|
||||||
const gen_link = (fid, text) => `<a href="https://drive.google.com/drive/folders/${fid}">${text || fid}</a>`
|
const gen_link = (fid, text) => `<a href="https://drive.google.com/drive/folders/${fid}">${text || fid}</a>`
|
||||||
|
|
||||||
if (!tg_token) throw new Error('請先在auth.js中設定tg_token')
|
if (!tg_token) throw new Error('請先在config.js中設定tg_token')
|
||||||
const { https_proxy } = process.env
|
const { https_proxy } = process.env
|
||||||
const axins = axios.create(https_proxy ? { httpsAgent: new HttpsProxyAgent(https_proxy) } : {})
|
const axins = axios.create(https_proxy ? { httpsAgent: new HttpsProxyAgent(https_proxy) } : {})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue