diff --git a/src/components/Play.vue b/src/components/Play.vue index 912486b..7bbfb31 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -646,7 +646,7 @@ export default { const currentSite = await sites.find({ key: this.video.key }) this.$message.info('即将调用解析接口播放,请等待...') if (currentSite.jiexiUrl) { - this.onlineUrl = /^\s*(default|默认)\s*$/i.test(currentSite.jiexiUrl) ? 'https://jx.7kjx.com/?url=' + url : currentSite.jiexiUrl + url + this.onlineUrl = /^\s*(default|默认)\s*$/i.test(currentSite.jiexiUrl) ? this.setting.defaultParseURL + url : currentSite.jiexiUrl + url } else { this.onlineUrl = url } diff --git a/src/components/Setting.vue b/src/components/Setting.vue index 8b73fb9..61efae5 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -83,6 +83,9 @@
编辑源
+
+
设置默认解析接口
+
屏蔽主分类
@@ -148,6 +151,19 @@ 所有资源来自网上, 该软件不参与任何制作, 上传, 储存等内容, 禁止传播违法资源. 该软件仅供学习参考, 请于安装后24小时内删除. +
+ + + + + + + + 取消 + 确定 + + +
@@ -238,7 +254,8 @@ export default { checkPasswordDialog: false, changePasswordDialog: false, proxy: false, - proxyDialog: false + proxyDialog: false, + configDefaultParseUrlDialog: false }, d: { }, latestVersion: pkg.version, @@ -287,6 +304,7 @@ export default { setting.find().then(res => { this.d = res this.setting = this.d + if (!this.setting.defaultParseURL) this.setting.defaultParseURL = 'https://jx.url.js.cn/?url=' // 硬编码 默认解析地址 }) }, getSites () { @@ -323,6 +341,11 @@ export default { this.d.excludeRootClasses = !this.d.excludeRootClasses this.updateSettingEvent() }, + configDefaultParseURL () { + this.d.defaultParseURL = this.setting.defaultParseURL.trim() + this.show.configDefaultParseUrlDialog = false + this.updateSettingEvent() + }, selectLocalPlayer () { const options = { filters: [ @@ -365,6 +388,7 @@ export default { async closeDialog () { this.show.checkPasswordDialog = false this.show.changePasswordDialog = false + this.show.configDefaultParseUrlDialog = false if (this.show.proxyDialog) { this.show.proxyDialog = false this.setting.proxy.type = 'none'