Commit 099b7c7f002d7ffd5931ff52c72b9ee2e9aef07e

Authored by u123231312
1 parent a5450c13

no message

@@ -16,11 +16,11 @@ class Template extends Common{ @@ -16,11 +16,11 @@ class Template extends Common{
16 16
17 public function index(){ 17 public function index(){
18 //$path = $this->publicpath.'images/'.input('folder').'/'; 18 //$path = $this->publicpath.'images/'.input('folder').'/';
19 - //  
20 - //测试环境 /Applications/XAMPP/xamppfiles/htdocs/dashboard/images/  
21 - //线上环境 /alidata/www/dc-api/public/tables/batchPicsyn/  
22 19
23 - $path = "/alidata/www/dc-api/public/tables/batchPicsyn/"; 20 + if($_SERVER['REMOTE_ADDR']=="127.0.0.1")
  21 + $path = "/Applications/XAMPP/xamppfiles/htdocs/dashboard/images/";
  22 + else
  23 + $path = "/alidata/www/dc-api/public/tables/batchPicsyn/";
24 24
25 $uppath = explode('/',input('folder')); 25 $uppath = explode('/',input('folder'));
26 $leve = count($uppath)-1; 26 $leve = count($uppath)-1;
@@ -56,7 +56,12 @@ class Template extends Common{ @@ -56,7 +56,12 @@ class Template extends Common{
56 } 56 }
57 57
58 public function PackzipDownload(){ 58 public function PackzipDownload(){
59 - $path = "/alidata/www/dc-api/public/tables/batchPicsyn/"; 59 +
  60 + if($_SERVER['REMOTE_ADDR']=="127.0.0.1")
  61 + $path = "/Applications/XAMPP/xamppfiles/htdocs/dashboard/images/";
  62 + else
  63 + $path = "/alidata/www/dc-api/public/tables/batchPicsyn/";
  64 +
60 $file=$path.input('post.filename'); 65 $file=$path.input('post.filename');
61 //首先判断是图片还是路径 66 //首先判断是图片还是路径
62 if($this->isImage($file)!==false){ 67 if($this->isImage($file)!==false){
@@ -6,7 +6,7 @@ @@ -6,7 +6,7 @@
6 .table-list ul.pic li span { width:82px;height:82px;display: block;border: 1px solid #dedede;} 6 .table-list ul.pic li span { width:82px;height:82px;display: block;border: 1px solid #dedede;}
7 .table-list ul.pic li span a {border:1px solid #eee;width:80px;height:80px;*font-size: 75px;display: table-cell; vertical-align: middle; overflow: hidden;} 7 .table-list ul.pic li span a {border:1px solid #eee;width:80px;height:80px;*font-size: 75px;display: table-cell; vertical-align: middle; overflow: hidden;}
8 .table-list ul.pic li img {max-height:80px;max-width:80px ;_width:80px;_height:80px;} 8 .table-list ul.pic li img {max-height:80px;max-width:80px ;_width:80px;_height:80px;}
9 - .table-list ul.pic li b {display:block;line-height:20px;height:20px;font-weight:normal;width:82px;overflow:hidden;} 9 + .table-list ul.pic li b {display:block;line-height:20px;height:20px;font-weight:normal;width:80px;overflow:hidden;}
10 .table-list ul.pic li em {position:absolute;right:25px;bottom:20px;font-style: normal;} 10 .table-list ul.pic li em {position:absolute;right:25px;bottom:20px;font-style: normal;}
11 .table-list ul.pic li em a{color: #f00;} 11 .table-list ul.pic li em a{color: #f00;}
12 </style> 12 </style>
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 {if condition="!empty($vo['ico'])"} 47 {if condition="!empty($vo['ico'])"}
48 <img src="/static/home/images/ext/{$vo['ext']}.png"> 48 <img src="/static/home/images/ext/{$vo['ext']}.png">
49 {else /} 49 {else /}
50 - <img src="https://xt04.colorcun.com/tables/batchPicsyn/{:input('folder')}{$vo.filename}" > 50 + <a href="https://xt04.colorcun.com/tables/batchPicsyn/{:input('folder')}{$vo.filename}" download="w3logo"><img src="https://xt04.colorcun.com/tables/batchPicsyn/{:input('folder')}{$vo.filename}" ></a>
51 {/if} 51 {/if}
52 </a> 52 </a>
53 </span> 53 </span>