Quellcode durchsuchen

이미지 데이터 파싱부분 수정

junekeunsong vor 4 Jahren
Ursprung
Commit
0933358913

BIN
app/dev/debug/app-dev-debug.apk


+ 0 - 1
app/dev/debug/output.json

@@ -1 +0,0 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":4,"versionName":"4","enabled":true,"outputFile":"app-dev-debug.apk","fullName":"devDebug","baseName":"dev-debug","dirName":""},"path":"app-dev-debug.apk","properties":{}}]

+ 7 - 6
app/src/main/java/com/dbs/mplus/fatima/httpTask/DataParser.java

@@ -1008,17 +1008,18 @@ public class DataParser {
     JSONObject object = Util.xmltoJsonObject(result);
     String res = Util.xmlToJsonString(object);
 
+    Log.e(TAG, "res -- > " + res);
+
     ArrayList<HashMap<String, String>> mapArrayList = Util.parseJSON(mContext, res);
-    ArrayList<HashMap<String, String>> mapArrayList1 = null;
 
-    for (String key : mapArrayList.get(0).keySet()) {
-      mapArrayList1 = Util.parseJSON(mContext, mapArrayList.get(0).get(key));
+    if (mapArrayList.get(0).get("ConsentImageVO") != null) {
+      mapArrayList = Util.parseJSON(mContext, mapArrayList.get(0).get("ConsentImageVO"));
     }
 
-    if (mapArrayList1 == null && mapArrayList1.size() == 0) {
+    if (mapArrayList == null && mapArrayList.size() == 0) {
     } else {
-      for (int i = 0; i < mapArrayList1.size(); i++) {
-        HashMap<String, String> mm = mapArrayList1.get(i);
+      for (int i = 0; i < mapArrayList.size(); i++) {
+        HashMap<String, String> mm = mapArrayList.get(i);
         
         String _consentMstRid = "";
         String _consentImageRid = "";