Skip to content

Commit

Permalink
Revert "v3.3.2版本更新"
Browse files Browse the repository at this point in the history
This reverts commit 02881e8.
  • Loading branch information
IvanHanloth committed Apr 2, 2023
1 parent e3c86a2 commit 81bdfd3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 37 deletions.
33 changes: 0 additions & 33 deletions public/api/file_download.php

This file was deleted.

2 changes: 1 addition & 1 deletion public/api/get_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$rdata=$dbinfo['data'];
}else{
if($dbinfo["cloud_way"]=="" or $dbinfo["cloud_way"]=="server"){
$rdata=$domain."download/".$dbinfo["gkey"]."/{$dbinfo['origin']}";
$rdata=$domain."download/?key=".$dbinfo["gkey"];
}elseif($dbinfo["cloud_way"]=="qiniu"){
include dirname(__FILE__)."/./qiniu.php";
$baseUrl = $qiniu_domain.$dbinfo["data"];
Expand Down
1 change: 0 additions & 1 deletion public/template/upload_file/js/drag_upload_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ layui.use(function() {
}
});
} else if (cloud_way == "qiniu") {
import("https://cdnjs.cloudflare.com/ajax/libs/qiniu-js/3.4.1/qiniu.min.js");
upload.render({
elem: '#upload',
auto: false,
Expand Down
1 change: 1 addition & 0 deletions template/upload_file/drag_upload_box.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
2022/4/3 */
?>
<link rel="stylesheet" type="text/css" href="/public/template/upload_file/css/drag_upload_box.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/qiniu-js/3.4.1/qiniu.min.js"></script>
<script src="/public/template/upload_file/js/drag_upload_box.js"></script>
<div class="layui-upload-drag layui-anim layui-anim-upbit upload_file_drag_upload_box_dragbox" id="upload" data-anim="layui-anim-down">
<div class="info">
Expand Down
4 changes: 2 additions & 2 deletions 安装说明!!!.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
注意,需要配置伪静态才能正常使用!

Apache:
RewriteRule ^/download/(\w*)/(.*)$ /public/api/file_download.php?key=$1;
RewriteRule ^/download+(?:\/?)+(.*)$ /index.php?mode=download&$1;
RewriteRule ^/app+(\/?)$ /index.php?mode=app;
RewriteRule ^/user+(\/?)$ /index.php?mode=user;


Nginx(推荐):
rewrite ^/download+(?:\/?)+(.*)$ /index.php?mode=download&$1;
rewrite ^/app+(\/?)$ /index.php?mode=app;
rewrite ^/user+(\/?)$ /index.php?mode=user;
rewrite ^/download/(\w*)/(.*)$ /public/api/file_download.php?key=$1;

0 comments on commit 81bdfd3

Please sign in to comment.