Skip to content

Commit 7668241

Browse files
committed
update:发布新版本
1 parent a99db3b commit 7668241

26 files changed

+557
-318
lines changed

Diff for: README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# drpyS(drpy-node)
22

33
nodejs作为服务端的drpy实现。全面升级异步写法
4-
积极开发中,每日一更,当前进度 `42%`
4+
积极开发中,每日一更,当前进度 `44%`
55

66
* [本地配置接口-动态本地](/config?pwd=)
77
* [本地配置接口-动态外网/局域网](/config/1?pwd=)
@@ -18,6 +18,12 @@ nodejs作为服务端的drpy实现。全面升级异步写法
1818

1919
## 更新记录
2020

21+
### 20250122
22+
23+
更新至V1.1.15
24+
25+
1. ds源和dr2源增加装逼壳图标支持
26+
2127
### 20250121
2228

2329
更新至V1.1.14

Diff for: controllers/config.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
104104
filterable: ruleObject.filterable,
105105
quickSearch: ruleObject.quickSearch,
106106
more: ruleObject.more,
107+
logo: ruleObject.logo,
107108
ext: fileSite.ext || "", // 固定为空字符串
108109
};
109110
sites.push(site);
@@ -183,6 +184,7 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
183184
filterable: ruleObject.filterable,
184185
quickSearch: ruleObject.quickSearch,
185186
more: ruleObject.more,
187+
logo: ruleObject.logo,
186188
ext: fileSite.ext || "", // 固定为空字符串
187189
};
188190
sites.push(site);
@@ -198,16 +200,16 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
198200
}
199201

200202
// 根据用户是否启用挂载数据源去生成对应配置
201-
if (ENV.get('enable_link_data', '1') === '1') {
203+
if (ENV.get('enable_link_data', '0') === '1') {
202204
log(`开始挂载外部T4数据`);
203205
let link_sites = [];
204206
let link_url = ENV.get('link_url');
205-
let enable_link_push = ENV.get('enable_link_push');
207+
let enable_link_push = ENV.get('enable_link_push', '0');
206208
try {
207209
let link_data = readFileSync(path.join(rootDir, './data/settings/link_data.json'), 'utf-8');
208210
link_sites = JSON.parse(link_data).sites.filter(site => site.type = 4);
209211
link_sites.forEach((site) => {
210-
if (site.key === 'push_agent' && !enable_link_push) {
212+
if (site.key === 'push_agent' && enable_link_push !== '1') {
211213
return
212214
}
213215
if (site.api && !site.api.startsWith('http')) {
@@ -216,7 +218,7 @@ async function generateSiteJSON(options, requestHost, sub, pwd) {
216218
if (site.ext && site.ext.startsWith('.')) {
217219
site.ext = urljoin(link_url, site.ext)
218220
}
219-
if (site.key === 'push_agent' && enable_link_push) { // 推送覆盖
221+
if (site.key === 'push_agent' && enable_link_push === '1') { // 推送覆盖
220222
let pushIndex = sites.findIndex(s => s.key === 'push_agent');
221223
if (pushIndex > -1) {
222224
sites[pushIndex] = site;

0 commit comments

Comments
 (0)