| | |
| | | JSONArray array = json.optJSONObject("store").optJSONObject("initDataObj")
|
| | | .optJSONObject("goods").optJSONArray("detailGallery");
|
| | | for (int j = 0; j < array.size(); j++) {
|
| | | imgList.add("http:" + array.optJSONObject(j).optString("url"));
|
| | | String u = array.optJSONObject(j).optString("url");
|
| | | if (!u.startsWith("http"))
|
| | | imgList.add("http:" + u);
|
| | | else
|
| | | imgList.add(u);
|
| | | }
|
| | | }
|
| | | } catch (Exception e) {
|
| | |
| | | return urlList;
|
| | | }
|
| | |
|
| | | public static String getCustomParams(String uid) {
|
| | | return uid + "_" + TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyyMMddHH");
|
| | | public static String getCustomParams(Long uid) {
|
| | | return uid + "_" + TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyyMMdd");
|
| | | }
|
| | |
|
| | | public static String getUidFromCustomParams(String params) {
|