lvhao 11 ore fa
parent
commit
0bab490d72
1 ha cambiato i file con 21 aggiunte e 1 eliminazioni
  1. 21 1
      core/CoreApp/controllers/Returns.php

+ 21 - 1
core/CoreApp/controllers/Returns.php

@@ -1174,11 +1174,13 @@ class Returns extends Start_Controller {
 						$lx = strtolower(end($lx));
 						if($lx == "3gp" || $lx == "rmvb" || $lx == "flv" || $lx == "wmv" || $lx == "avi" || $lx == "mkv" || $lx == "wav" || $lx == "mp4")
 						{
+							if(strpos($v,"http")===false){
+								$v = $this->show_url.$v;
+							}
 							$img[] = [
 								'type'=>'video',
 								'url'=>$v,
 							];
-							// $img .= '<span class="deldata"><video src="'.$v.'" controls="controls"></video>'."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
 						}
 						else if($v != '')
 						{
@@ -1191,6 +1193,24 @@ class Returns extends Start_Controller {
 								'type'=>'img',
 								'url'=>$url,
 							];
+
+
+							if(strpos($v,"http")===false){
+								$v = $this->show_url.$v;
+								$img[] = [
+									'type'=>'img',
+									'url'=>$url,
+								];
+							}else{
+								$url = str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn/','http://a.wepolicy.cn/','https://1.wepolicy.cn/','/img/thumb?src='),'',$v);
+								$url = explode('&',$url);
+								$url = empty($url[0])?'':$url[0];
+								$img[] = [
+									'type'=>'img',
+									'url'=>$url,
+								];
+								
+							}
 							//$img .= '<span class="deldata"><a href="'.$url.'" target="_blank">'."<img src='".site_url('img/thumb')."?src=".$url."&w=500&h=500' data-src='".$v."'></a>"."<em style='width:30px;height:30px;line-height:30px;text-align: center;display: inline-block;position: absolute;top: 0px;right: 20px;z-index: 10;background-color: #FFF;cursor: pointer;' title='点击删除'>X</em></span>";
 						}
 						else