Commit f9cd68a5 authored by 顾文旭's avatar 顾文旭

fix 图片

parent beb95f27
...@@ -1763,10 +1763,10 @@ class GoodsService ...@@ -1763,10 +1763,10 @@ class GoodsService
$data = $ksyunParams = []; $data = $ksyunParams = [];
$strList = explode(",", $picUrlStr); $strList = explode(",", $picUrlStr);
foreach ($strList as $key => $str) { foreach ($strList as $key => $str) {
// if (!empty($str) && substr($str, 0, 2) != "SHQ") { if (!empty($str) && substr($str, 0, 2) != "SHQ") {
// $data[] = "https://pingouimg.jwshq.cn/" . $str. "?url=" . $str; $data[] = "https://pingouimg.jwshq.cn/" . $str. "?url=" . $str;
// continue; continue;
// } }
$arr = explode("/", $str); $arr = explode("/", $str);
if (preg_match("/^http[s]{0,1}:\/\/([\w.]+\/?)\S*/", $str)) { if (preg_match("/^http[s]{0,1}:\/\/([\w.]+\/?)\S*/", $str)) {
$data[] = $str; $data[] = $str;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment