rabin 3 年之前
父节点
当前提交
cc6143bdf9
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      app/collection/lib/Create.php
  2. 2 2
      app/collection/lib/Spider.php
  3. 2 2
      app/collection/src/Api.php

+ 1 - 1
app/collection/lib/Create.php

@@ -28,7 +28,7 @@ class Create
         	}
         }
 
-        $max = 15;
+        $max = 12;
         $result = array();
         if ($info) {
             $result['page_id'] = $info['page_id'];

+ 2 - 2
app/collection/lib/Spider.php

@@ -31,7 +31,7 @@ class Spider
 		$this->pic($data);
 	}
 
-    # 从采集的数据导入 一天采集一次,一次使用15
+    # 从采集的数据导入 一天采集一次,一次使用12
     public function import_api()
     {
         $project_id = Dever::input('project_id', 1);
@@ -40,7 +40,7 @@ class Spider
         $info = Dever::db('spider/project')->find($project_id);
 
         $where['use'] = 1;
-        $where['limit'] = '0,15';
+        $where['limit'] = '0,12';
         $data = Dever::db('spider/data')->getAll($where);
 
         $name = $info['config'] ? $info['config'] : $info['name'];

+ 2 - 2
app/collection/src/Api.php

@@ -388,7 +388,7 @@ class Api extends Core
         if ($data['info']['uid'] > 0) {
             $data['info']['user'] = $this->getUser($data['info']['uid'], $data['info']['id']);
         }
-        
+
         $data['info']['pic_bg'] = explode(',', $data['info']['pic_bg']);
 
         # 是否可以阅读
@@ -658,7 +658,7 @@ class Api extends Core
             $where['uid'] = $this->uid;
             $data['user_times'] = Dever::load('user/lib/times')->getData($this->id, $this->uid);
             foreach ($data['times'] as $k => $v) {
-                $where['times_id'] = $v['id'];
+                $where['parent_id'] = $v['id'];
                 $data['times'][$k]['child'] = Dever::db('collection/times')->child($where);
                 foreach ($data['times'][$k]['child'] as $k1 => $v1) {
                     $data['times'][$k]['child'][$k1]['visible'] = false;