dever 4 年 前
コミット
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',
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             'limit' => '0,10',
-            'col' => '*,olink as link',
+            'col' => '*',
         ),
 
         # 获取列表页 带有分页的
@@ -361,7 +361,7 @@ return array
             'type' => 'all',
             'order' => array('reorder' => 'desc', 'id' => 'desc'),
             '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)
     {
         $info['id'] = 0;
+        if ($info['type'] == 10) {
+            $info['link'] = $info['olink'];
+        }
         if ($info['type'] < 10) {
             $table = Dever::config('base')->table_name[$info['type']];
             $method = 'one';

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

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