作者 lyh
@@ -776,11 +776,7 @@ class ProjectUpdate extends Command @@ -776,11 +776,7 @@ class ProjectUpdate extends Command
776 //获取地址路由 776 //获取地址路由
777 protected function get_url_route($url) 777 protected function get_url_route($url)
778 { 778 {
779 - if (strpos($url, '%ec') !== false) {  
780 - $url = str_replace('%ec', 'v6SpecialStr', $url);  
781 - $url = urldecode($url);  
782 - $url = str_replace('v6SpecialStr', '%ec', $url);  
783 - } else { 779 + if (strpos($url, '%3A') !== false || strpos($url, '%2F') !== false) {
784 $url = urldecode($url); 780 $url = urldecode($url);
785 } 781 }
786 $arr = parse_url($url); 782 $arr = parse_url($url);
@@ -11,6 +11,7 @@ use App\Rules\Ids; @@ -11,6 +11,7 @@ use App\Rules\Ids;
11 use App\Services\BatchExportService; 11 use App\Services\BatchExportService;
12 use Illuminate\Http\Request; 12 use Illuminate\Http\Request;
13 use Illuminate\Support\Facades\Storage; 13 use Illuminate\Support\Facades\Storage;
  14 +use Illuminate\Support\Str;
14 15
15 /** 16 /**
16 * 精准询盘 17 * 精准询盘
@@ -131,6 +132,12 @@ class InquiryController extends BaseController @@ -131,6 +132,12 @@ class InquiryController extends BaseController
131 if(!empty($this->param['form_id'])){ 132 if(!empty($this->param['form_id'])){
132 $item = array_merge($item, $item['data']); 133 $item = array_merge($item, $item['data']);
133 } 134 }
  135 +
  136 + foreach ($map as $field => $name) {
  137 + if (Str::startsWith($item[$field], '=')) {
  138 + $item[$field] = "'" . $item[$field];
  139 + }
  140 + }
134 } 141 }
135 142
136 //生成文件,发送到客户端 143 //生成文件,发送到客户端
@@ -707,6 +707,21 @@ class ProductLogic extends BaseLogic @@ -707,6 +707,21 @@ class ProductLogic extends BaseLogic
707 $content = ''; 707 $content = '';
708 if($data[6]??''){ 708 if($data[6]??''){
709 //处理内容中的图片 709 //处理内容中的图片
  710 +
  711 + /*****阿里巴巴国际站特殊情况处理start******/
  712 + preg_match_all('/<img src=(\'|\")(.*?) data-src=(\'|\")(.*?)>/i', $data[6], $result_alibaba);
  713 + if($result_alibaba[0] ?? []){
  714 + foreach ($result_alibaba[0] as $v_ali){
  715 + $data[6] = str_replace($v_ali,'',$data[6]);
  716 + }
  717 +
  718 + $data[6] = str_replace('<noscript>','',$data[6]);
  719 + $data[6] = str_replace('</noscript>','',$data[6]);
  720 + $data[6] = str_replace('id="module_detail_video"','id="module_detail_video" hidden',$data[6]);
  721 + $data[6] = str_replace('module-title="detailVideoShow"','module-title="detailVideoShow" hidden',$data[6]);
  722 + }
  723 + /*****阿里巴巴国际站特殊情况处理end******/
  724 +
710 preg_match_all('/<img\s+[^>]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i', $data[6], $result_content); 725 preg_match_all('/<img\s+[^>]*?src\s*=\s*(\'|\")(.*?)\\1[^>]*?\/?\s*>/i', $data[6], $result_content);
711 if($result_content[2]??[]){ 726 if($result_content[2]??[]){
712 foreach ($result_content[2] as $vc_img){ 727 foreach ($result_content[2] as $vc_img){