|
|
|
@ -68,18 +68,10 @@ class QueryController extends BaseController
|
|
|
|
|
$this->error('推广员权限异常');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty($map['tab_spend.promote_id'])) {
|
|
|
|
|
$map['_string'] = 'tab_spend.promote_id = ' . $promoteId;
|
|
|
|
|
} else {
|
|
|
|
|
$map['tab_spend.promote_id'] = $promoteId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty(I('own_id'))) {
|
|
|
|
|
if (!empty($map['_string'])) {
|
|
|
|
|
unset($map['_string']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$map['tab_spend.promote_id'] = I('own_id');//本账号
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -220,18 +212,10 @@ class QueryController extends BaseController
|
|
|
|
|
$this->error('推广员权限异常');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty($map['tab_user.promote_id'])) {
|
|
|
|
|
$map['_string'] = 'tab_user.promote_id = ' . $promoteId;
|
|
|
|
|
} else {
|
|
|
|
|
$map['tab_user.promote_id'] = $promoteId;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty(I('own_id'))) {
|
|
|
|
|
if (!empty($map['_string'])) {
|
|
|
|
|
unset($map['_string']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$map['tab_user.promote_id'] = I('own_id');//本账号
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|