|
|
|
@ -71,6 +71,9 @@ class SocietyInfoController extends ThinkController
|
|
|
|
|
$map['communication_time'] = array('elt', time() - $gap * 86400);
|
|
|
|
|
}
|
|
|
|
|
if (I('sociaty_level') && I('sociaty_level') != '0') $map['sociaty_level'] = I('sociaty_level');
|
|
|
|
|
if (I('num')) {
|
|
|
|
|
$map['id'] = substr(I('num'), 8);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取分页数据
|
|
|
|
|
$query = $model->where($map)->order("communication_time desc");
|
|
|
|
@ -122,7 +125,7 @@ class SocietyInfoController extends ThinkController
|
|
|
|
|
return ;
|
|
|
|
|
} else {
|
|
|
|
|
$societyInfos = $order_query->page($page,$row)->field("*")->select();
|
|
|
|
|
// dump($societyInfos);die();
|
|
|
|
|
// dump($order_query->_sql());die();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//分页
|
|
|
|
@ -136,7 +139,7 @@ class SocietyInfoController extends ThinkController
|
|
|
|
|
|
|
|
|
|
foreach ($societyInfos as $k => &$v) {
|
|
|
|
|
|
|
|
|
|
$v['num'] = $k+1+intval((I('get.p', 0)?I('get.p', 0):1)-1)*$row;
|
|
|
|
|
$v['num'] = date('Ymd', $v['create_time']).$v['id'];
|
|
|
|
|
$v['sociaty_level_str'] = $this->level[$v['sociaty_level']];
|
|
|
|
|
|
|
|
|
|
if (time() - $v['communication_time'] > $gap * 86400
|
|
|
|
|