dever 4 лет назад
Родитель
Сommit
e919ad61c9
3 измененных файлов с 6 добавлено и 3 удалено
  1. 2 2
      app/push/database/data.php
  2. 3 0
      app/push/lib/Data.php
  3. 1 1
      main/template/xuniren/feature.php

+ 2 - 2
app/push/database/data.php

@@ -345,7 +345,7 @@ return array
             'type' => 'all',
             'type' => 'all',
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'limit' => '0,10',
             'limit' => '0,10',
-            'col' => '*,olink as link',
+            'col' => '*',
         ),
         ),
 
 
         # 获取列表页 带有分页的
         # 获取列表页 带有分页的
@@ -361,7 +361,7 @@ return array
             'type' => 'all',
             'type' => 'all',
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'page' => array(10, 'list'),
             'page' => array(10, 'list'),
-            'col' => '*,olink as link',
+            'col' => '*',
         ),
         ),
     ),
     ),
 );
 );

+ 3 - 0
app/push/lib/Data.php

@@ -53,6 +53,9 @@ class Data
     private function getOne($info)
     private function getOne($info)
     {
     {
         $info['id'] = 0;
         $info['id'] = 0;
+        if ($info['type'] == 10) {
+            $info['link'] = $info['olink'];
+        }
         if ($info['type'] < 10) {
         if ($info['type'] < 10) {
             $table = Dever::config('base')->table_name[$info['type']];
             $table = Dever::config('base')->table_name[$info['type']];
             $method = 'one';
             $method = 'one';

+ 1 - 1
main/template/xuniren/feature.php

@@ -21,7 +21,7 @@ $view
 
 
             'img' => array
             'img' => array
             (
             (
-                'src' => '$v.pic',
+                'src' => '$v.small_pic',
                 'alt' => '$v.name',
                 'alt' => '$v.name',
             ),
             ),
         ),
         ),