|
@@ -119,12 +119,13 @@ class Relation
|
|
|
}
|
|
|
|
|
|
|
|
|
- public function getChildNum($uid, $level = 1, $time = false, $curtime = false, $method = 'count')
|
|
|
+ public function getChildNum($uid, $level = 1, $start = false, $end = false, $method = 'count')
|
|
|
{
|
|
|
$where['uid'] = $uid;
|
|
|
if ($level) {
|
|
|
$where['level'] = $level;
|
|
|
}
|
|
|
+
|
|
|
if ($time) {
|
|
|
$time = $time * 3600;
|
|
|
if ($curtime) {
|
|
@@ -137,6 +138,13 @@ class Relation
|
|
|
}
|
|
|
$where['end'] = $cur + $time;
|
|
|
}
|
|
|
+ */
|
|
|
+ if ($start) {
|
|
|
+ $where['start'] = Dever::maketime($start);
|
|
|
+ }
|
|
|
+ if ($end) {
|
|
|
+ $where['end'] = Dever::maketime($end);
|
|
|
+ }
|
|
|
|
|
|
if ($method == 'count') {
|
|
|
$method = 'getChildCount';
|