Skip to content

Commit 821a72c

Browse files
committed
fix: 修正打包文件和提交git含有本地文件的bug,修正不夜加速没有默认挂载成功问题
1 parent 614f4ab commit 821a72c

File tree

6 files changed

+8
-4898
lines changed

6 files changed

+8
-4898
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,6 @@ dist
137137
/jx/奇奇.js
138138
/js/百忙无果[].js
139139
/data/settings/link_data.json
140+
/yarn.lock
141+
/custom.json
142+
/index.json

controllers/config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,9 @@ export default (fastify, options, done) => {
507507
const livesJSON = generateLivesJSON(requestHost);
508508
const playerJSON = generatePlayerJSON(options.configDir, requestHost);
509509
const configObj = {sites_count: siteJSON.sites.length, ...playerJSON, ...siteJSON, ...parseJSON, ...livesJSON};
510+
if (!configObj.spider) {
511+
configObj.spider = playerJSON.spider
512+
}
510513
// console.log(configObj);
511514
const configStr = JSON.stringify(configObj, null, 2);
512515
if (!process.env.VERCEL) { // Vercel 环境不支持写文件,关闭此功能

0 commit comments

Comments
 (0)