浏览代码

bug修复

eganwu 11 月之前
父节点
当前提交
cbdf119bbb
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/custom/restcontroller/common/adspace/adspace.java

+ 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);