dever %!s(int64=6) %!d(string=hai) anos
pai
achega
3329cd7f50
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      h5/src/View.php

+ 10 - 0
h5/src/View.php

@@ -62,6 +62,16 @@ class View extends Core
                 unset($data['relation'][3]);
             }
 
+            if (isset($data['comment'])) {
+                $comment = $data['comment'];
+                $data['comment'] = array();
+                foreach ($comment as $k => $v) {
+                    if ($k <= 2) {
+                        $data['comment'][$k] = $v;
+                    }
+                }
+            }
+
             return Dever::render($template, $data);
         } else {
             Dever::alert('错误的数据');