eganwu 11 mesiacov pred
rodič
commit
cbdf119bbb

+ 6 - 3
src/custom/restcontroller/common/adspace/adspace.java

@@ -87,14 +87,17 @@ public class adspace extends Controller {
             for (Row row : rows) {
                 Rows attinfos = RowsMap.getOrDefault(row.getString("sat_sharematerialid"), new Rows());
                 if (attinfos.size() > 0) {
-                    appletRows.add(attinfos.get(0));
+                    Row appletRow = new Row();
+                    appletRow.put("attinfos", attinfos.get(0));
+                    appletRow.put("dimensional", "375*240");
+                    appletRows.add(appletRow);
                 }
             }
 
         }
         RowsMap adRowsMap = adRows.toRowsMap("location");
-        if(!adRowsMap.containsKey("indexBottom")){
-            adRowsMap.put("indexBottom",new Rows());
+        if (!adRowsMap.containsKey("indexBottom")) {
+            adRowsMap.put("indexBottom", new Rows());
         }
         adRowsMap.get("indexBottom").addAll(appletRows);