lvhao 2 dienas atpakaļ
vecāks
revīzija
241fcbf29e
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      core/CoreApp/controllers/Returns.php

+ 5 - 3
core/CoreApp/controllers/Returns.php

@@ -444,7 +444,8 @@ class Returns extends Start_Controller {
 			$post['u9_sku'] = trim($post['u9_sku'],";");
 			$post['region'] = trim($post['region'],',');
 			$post['cwjs'] = trim($post['cwjs'],',');
-
+			$post['img'] = str_replace($this->show_url,'',$post['img']);
+			
 			if(!empty($post['stime'])){
 				if(empty($post['ftime'])){
 					echo json_encode(array('msg'=>'请选择发货日期','success'=>false));exit;
@@ -500,14 +501,15 @@ 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("http",$v)===false){
+				if(strpos($v,"http")===false){
 					$v = $this->show_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 != '')
 			{
-				if(strpos("http",$v)===false){
+				
+				if(strpos($v,"http")===false){
 					$v = $this->show_url.$v;
 					$img .= '<span class="deldata"><a href="'.$v.'" target="_blank">'."<img src='".$v."' 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{