Skip to content

Commit 2108518

Browse files
committed
可发送下载任务至文件蜈蚣下载 yuantuo666#187
1 parent 42962bd commit 2108518

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

common/download.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,21 @@
209209
?>
210210
<p class="card-text">
211211
<a href="javascript:void(0)" data-toggle="modal" data-target="#SendToAria2"><?php echo Language["SendToAria2"]; ?>(Motrix)</a>
212+
<a href="" id="filecxx" style="display: none;"><?php echo Language["SendToFilecxx"]; ?></a>
212213
</p>
214+
<script>
215+
try {
216+
let filec_address = create_fileu_address({
217+
uri: "https://<?php echo $realLink; ?>",
218+
user_agent: "LogStatistic",
219+
file_name: "<?php echo $filename; ?>"
220+
});
221+
$("#filecxx").attr("href", filec_address);
222+
$("#filecxx").show();
223+
} catch (e) {
224+
$("#filecxx").hide();
225+
}
226+
</script>
213227
<p class="card-text"><a href="?help" target="_blank"><?php echo Language["DownloadLink"] . Language["HelpButton"]; ?>(必读)</a></p>
214228
<p class="card-text"><?php echo Language["DownloadTip"]; ?></p>
215229

index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.1.2/js/bootstrap.min.js"></script>
8484
<script src="https://fastly.jsdelivr.net/npm/sweetalert2@10.14.0/dist/sweetalert2.min.js"></script>
8585
<script src="https://fastly.jsdelivr.net/npm/@keeex/qrcodejs-kx"></script>
86+
<script src="http://filecxx.com/script/create_filec_address.js"></script>
8687
<script src="static/color.js?v=<?php echo programVersion; ?>"></script>
8788
<script src="static/functions.js?v=<?php echo programVersion; ?>"></script>
8889
<script defer src="static/ready.js?v=<?php echo programVersion; ?>"></script>

language.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"DownloadLink" => "下载链接",
3838
"DownloadTip" => "Tips: 电脑端右键即可复制下载链接,手机端长按可复制下载链接。推荐使用 Aria2、Motrix 下载,速度更快,使用方法请访问帮助页面。",
3939
"SendToAria2" => "发送到 Aria2",
40+
"SendToFilecxx" => "发送到 文件蜈蚣",
4041
"Send" => "发送",
4142
"Close" => "关闭",
4243
"IndexTitle" => "百度网盘在线解析",
@@ -166,6 +167,7 @@
166167
"DownloadLink" => "Download Link",
167168
"DownloadTip" => "Tips: Copy the download link and put it in your download apps.",
168169
"SendToAria2" => "Send to aria2",
170+
"SendToFilecxx" => "Send to File Centipede",
169171
"Send" => "Send",
170172
"Close" => "Close",
171173
"IndexTitle" => "Get Download Link of pan.baidu.com",

0 commit comments

Comments
 (0)