|
@@ -29,7 +29,7 @@ Class Info
|
|
|
$html['area'] = $area;
|
|
|
$html['time'] = date('Y.m.d H:i',$info['cdate']).$info['gdate'];
|
|
|
$html['user'] = $info['name'].'<br/>'.$info['mobile'];
|
|
|
- $data= Dever::db('clue/follow')->getCount(array('info_id'=>$id));
|
|
|
+ $data= Dever::db('clue/follow')->getCount(array('info_id'=>$id,'status'=>'1,3'));
|
|
|
$follow = Dever::db('clue/follow')->find(array('info_id'=>$id,'status'=>1));
|
|
|
if ($follow){
|
|
|
if ($follow['xdate']) {
|
|
@@ -149,18 +149,29 @@ Class Info
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
- $w['admin_id'] = $where['follow'];
|
|
|
+ // $w['admin_id'] = $where['follow'];
|
|
|
+ // $w['info_id'] = $id;
|
|
|
+ // if ($where['type'] == 3) {
|
|
|
+ // $w['status'] = 3;
|
|
|
+ // } else {
|
|
|
+ // $w['status'] = 2;
|
|
|
+ // }
|
|
|
+ // $ids = Dever::db('clue/follow')->insert($w);
|
|
|
+ // if ($ids) {
|
|
|
+ // $where['follow_id'] = $ids;
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ $w['admin_id'] = $where['follow'];
|
|
|
$w['info_id'] = $id;
|
|
|
- $w['status'] = 2;
|
|
|
+ if ($where['type'] == 3) {
|
|
|
+ $w['status'] = 3;
|
|
|
+ } else {
|
|
|
+ $w['status'] = 2;
|
|
|
+ }
|
|
|
$ids = Dever::db('clue/follow')->insert($w);
|
|
|
if ($ids) {
|
|
|
$where['follow_id'] = $ids;
|
|
|
}
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
if (!$info['clue_num']) {
|
|
|
$where['clue_num'] = $this->getClueNum();
|
|
|
}
|
|
@@ -298,7 +309,7 @@ Class Info
|
|
|
$data['info']['people'] = $this->group_admin($data['info']['company_id'],$branch[0],$branch[1]);
|
|
|
|
|
|
$follow = 0;
|
|
|
- $follow = Dever::db('clue/follow')->getCount(array('info_id'=>$id));
|
|
|
+ $follow = Dever::db('clue/follow')->getCount(array('info_id'=>$id,'status'=>'1,3'));
|
|
|
if ($data['info']['num'] && $data['info']['num']>0) {
|
|
|
$data['info']['cishu'] = $data['info']['num'].'次';
|
|
|
} else {
|