Skip to content

Commit 9c64a2f

Browse files
committed
更新[BoxJs]: 刷新订阅添加时间缀避免网络缓存
1 parent 2b9c9f3 commit 9c64a2f

6 files changed

Lines changed: 23 additions & 19 deletions

File tree

‎Env.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ function Env(name, opts) {
275275
})
276276
} else if (this.isQuanX()) {
277277
if (this.isNeedRewrite) {
278-
opts.headers = opts.headers || {}
279-
Object.assign(opts.headers, { hints: false })
278+
opts.opts = opts.opts || {}
279+
Object.assign(opts.opts, { hints: false })
280280
}
281281
$task.fetch(opts).then(
282282
(resp) => {
@@ -329,8 +329,8 @@ function Env(name, opts) {
329329
} else if (this.isQuanX()) {
330330
opts.method = 'POST'
331331
if (this.isNeedRewrite) {
332-
opts.headers = opts.headers || {}
333-
Object.assign(opts.headers, { hints: false })
332+
opts.opts = opts.opts || {}
333+
Object.assign(opts.opts, { hints: false })
334334
}
335335
$task.fetch(opts).then(
336336
(resp) => {

‎Env.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)