|
|
@ -1719,7 +1719,14 @@ class QueryController extends BaseController
|
|
|
|
|
|
|
|
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
$promote = $this->getLoginPromote();
|
|
|
|
$levelPromote = $this->getLevelPromote();
|
|
|
|
$levelPromote = $this->getLevelPromote();
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote);
|
|
|
|
$queryPromote = $this->getQueryPromote($levelPromote, function() use ($promote) {
|
|
|
|
|
|
|
|
if ($promote['shift_over_apply'] == 1) {
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
|
|
|
|
return $promoteService->getTopPromote($promote);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return $promote;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
$promoteService = new PromoteService();
|
|
|
|
$subInSql = $promoteService->subInSql($queryPromote);
|
|
|
|
$subInSql = $promoteService->subInSql($queryPromote);
|
|
|
|