From 2a4e8ceb80d063a885fe8bb7bea431d8e4a3e08a Mon Sep 17 00:00:00 2001 From: "23028876916@qq.com" Date: Wed, 23 Dec 2020 14:53:14 +0800 Subject: [PATCH] =?UTF-8?q?1223=20=20=E6=B7=98=E5=AE=9D=E5=95=86=E5=93=81?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=8E=B7=E5=8F=96=E6=96=B9=E6=B3=95,?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/taobao/taobao_loader.dart | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/util/taobao/taobao_loader.dart b/lib/util/taobao/taobao_loader.dart index a318a33..33e5dc7 100644 --- a/lib/util/taobao/taobao_loader.dart +++ b/lib/util/taobao/taobao_loader.dart @@ -125,7 +125,11 @@ class TaobaoLoader { List mPicList = []; for (String pic in Images) { if (pic.isNotEmpty) { - mPicList.add("https:" + pic); + if (pic.startsWith("http")) { + mPicList.add(pic); + } else { + mPicList.add("https:" + pic); + } } } Logger.log("mPicList图片:" + mPicList.length.toString() + "\n" + mPicList.toString()); @@ -148,7 +152,11 @@ class TaobaoLoader { if (pic2.length > 0) { for (String s in pic2) { if (s.isNotEmpty) { - mPicList.add("https:" + s); + if (s.startsWith("http")) { + mPicList.add(s); + } else { + mPicList.add("https:" + s); + } } } }