Browse Source

1223 淘宝商品图片获取方法,优化数据解析

tags/0.0.3+1
23028876916@qq.com 4 years ago
parent
commit
2a4e8ceb80
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      lib/util/taobao/taobao_loader.dart

+ 10
- 2
lib/util/taobao/taobao_loader.dart View File

@@ -125,7 +125,11 @@ class TaobaoLoader {
List<String> 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);
}
}
}
}


Loading…
Cancel
Save