diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 76e2b3537..2fbc5ad0e 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -444,6 +444,7 @@ class PromoteController extends ThinkController $data['withdraw_done'] = $_POST['withdraw_done']; $data['can_view_recharge'] = $_POST['can_view_recharge']; $data['ts_over_apply'] = $_POST['ts_over_apply'] ?? 0; + $data['shift_over_apply'] = $_POST['shift_over_apply'] ?? 0; if (empty($pwd)) { unset($data['password']); } diff --git a/Application/Admin/View/Promote/edit.html b/Application/Admin/View/Promote/edit.html index 2a6ee9578..dea384bf2 100644 --- a/Application/Admin/View/Promote/edit.html +++ b/Application/Admin/View/Promote/edit.html @@ -348,6 +348,22 @@ + 1):?> + + 公会内部换绑权限: + + + + + + 开启后该推广员有权限操作整个公会的玩家换绑 + + + 备注: diff --git a/Application/Home/Controller/QueryController.class.php b/Application/Home/Controller/QueryController.class.php index 28c694e65..058b4a075 100644 --- a/Application/Home/Controller/QueryController.class.php +++ b/Application/Home/Controller/QueryController.class.php @@ -1719,7 +1719,14 @@ class QueryController extends BaseController $promote = $this->getLoginPromote(); $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(); $subInSql = $promoteService->subInSql($queryPromote);