1,商品海報(bào)一直是“正在下載海報(bào)請(qǐng)稍后再試”,刪除了代碼,仍然不行
/*$systemStorageServices = app()->make(SystemStorageServices::class);$domainArr = $systemStorageServices->getColumn([], 'domain');$domainArr = array_merge($domainArr, [$request->host()]);$domainArr = array_unique(array_diff($domainArr, ['']));if (count($domainArr)) { $domainArr = array_map(function ($item) { return str_replace(['https://', 'http://'], '', $item); }, $domainArr);}$domainArr[] = 'mp.weixin.qq.com';$imageUrlHost = $imageUrl ? (parse_url($imageUrl)['host'] ?? $imageUrl) : $imageUrl;$codeUrlHost = $codeUrl ? (parse_url($codeUrl)['host'] ?? $codeUrl) : $codeUrl;if ($domainArr && (($imageUrl && !in_array($imageUrlHost, $domainArr)) || ($codeUrl && !in_array($codeUrlHost, $domainArr)))) { return app('json')->success(['code' => false, 'image' => false]);}
2,小程序顯示不了圖片,圖片地址為七牛云遠(yuǎn)程,協(xié)議是https,小程序后端也配了七牛云圖片域名