master
elf 3 years ago
parent 808e15dcd2
commit 7e0c26c68f

@ -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']);
}

@ -348,6 +348,22 @@
</td>
</tr>
<?php endif;?>
<?php if($data['level'] > 1):?>
<tr>
<td class="l">公会内部换绑权限:</td>
<td class="r table_radio">
<span class="form_radio table_btn">
<label >
<input type="radio" value="1" name="shift_over_apply" class="withdraw_done" <if condition="$data['shift_over_apply'] eq 1">checked="checked"</if>> 开启
</label >
<label >
<input type="radio" value="0" name="shift_over_apply" class="withdraw_done" <if condition="$data['shift_over_apply'] eq 0">checked="checked"</if>> 锁定
</label>
</span>
<span class="notice-text">开启后该推广员有权限操作整个公会的玩家换绑</span>
</td>
</tr>
<?php endif;?>
<tr>
<td class="l">备注:</td>
<td class="r table_textarea" >

@ -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);

Loading…
Cancel
Save