dever vor 3 Jahren
Ursprung
Commit
a831ca37d4
2 geänderte Dateien mit 3 neuen und 5 gelöschten Zeilen
  1. 2 2
      app/content/database/xuniren.php
  2. 1 3
      app/content/lib/Xuniren.php

+ 2 - 2
app/content/database/xuniren.php

@@ -239,13 +239,13 @@ return array
             'default'   => '',
             'desc'      => '首页简介',
             'match'     => 'option',
-            'update'    => 'textarea',
+            //'update'    => 'textarea',
         ),
 
         'info'      => array
         (
             'type'      => 'varchar-500',
-            'name'      => '详情页简介-不能超过110字',
+            'name'      => '简介-不能超过110字',
             'default'   => '',
             'desc'      => '简介',
             'match'     => 'is_string',

+ 1 - 3
app/content/lib/Xuniren.php

@@ -18,9 +18,7 @@ class Xuniren
             foreach ($data as $k => $v) {
                 $data[$k] = $this->getPic($v);
                 $data[$k]['link'] = Dever::url('main/xnr-detail?id=' . $v['id']);
-                if (!$v['home_info']) {
-                    $data[$k]['home_info'] = Dever::cut($v['info'], 50);
-                }
+                $data[$k]['info'] = Dever::cut($v['info'], 50);
             }
         }