map
This commit is contained in:
parent
c87b473c31
commit
9f2836208e
@ -53,6 +53,17 @@ class BroadController extends Controller
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function edit($id, Request $request, Broad $model)
|
||||
{
|
||||
$data = $model::get($id);
|
||||
if ($request->isPost()) {
|
||||
$param = $request->param();
|
||||
$data->save($param) ? admin_success() : admin_error();
|
||||
}
|
||||
$this->assign('data', $data);
|
||||
return $this->fetch('add');
|
||||
}
|
||||
|
||||
//删除
|
||||
public function del($id, Broad $model)
|
||||
{
|
||||
@ -66,7 +77,7 @@ class BroadController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$result = $model->whereIn('id', $id)->delete();
|
||||
$result = $model->whereIn('server_id', $id)->delete();
|
||||
|
||||
return $result ? admin_success(lang('delete_success'), URL_RELOAD) : admin_error(lang('delete_error'));
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ class PlayerController extends Controller
|
||||
$param = $request->param();
|
||||
$son_agency_invite = $this->son_agency_invite . ",{$this->user->invite}";
|
||||
$model = $model
|
||||
->field('roleid,name,accountid,level,jade,create_time,serverid')
|
||||
->field('roleid,name,accountid,level,jade,create_time,serverid,mapid,x,y,lastonline')
|
||||
->order('create_time')
|
||||
|
||||
->withJoin([
|
||||
|
@ -33,7 +33,7 @@
|
||||
<div class="form-group">
|
||||
<label for="title" class="col-sm-2 control-label">公告标题</label>
|
||||
<div class="col-sm-10 col-md-4">
|
||||
<input type="text" id="title" name="title" style="width: 100%" placeholder="请输入公告标题" >
|
||||
<input type="text" id="title" name="title" style="width: 100%" placeholder="请输入公告标题" maxlength="6">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="form-group">
|
||||
<input {if(!empty($_keywords))} value="{$_keywords|trim=\0}" {else /} value='' {/if}
|
||||
name="_keywords" id="_keywords" class="form-control"
|
||||
placeholder="ID/角色名">
|
||||
placeholder="ID/角色名/账号">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
@ -68,7 +68,11 @@
|
||||
<th>等级</th>
|
||||
<th>所属代理</th>
|
||||
<th>仙玉</th>
|
||||
<th>地图id</th>
|
||||
<th>X</th>
|
||||
<th>Y</th>
|
||||
<th>创建时间</th>
|
||||
<th>最后在线时间</th>
|
||||
<th>最后登录IP</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
@ -83,7 +87,11 @@
|
||||
<td>{$item.level}</td>
|
||||
<td>{$item.roleid|get_role_agency_account|default=''}</td>
|
||||
<td>{$item.jade}</td>
|
||||
<td>{$item.mapid}</td>
|
||||
<td>{$item.x}</td>
|
||||
<td>{$item.y}</td>
|
||||
<td>{$item.create_time}</td>
|
||||
<td>{$item.lastonline}</td>
|
||||
<td>{$item.account.login_ip|default='无'}</td>
|
||||
<td class="td-do">
|
||||
|
||||
|
@ -107,8 +107,6 @@
|
||||
<th>邀请码</th>
|
||||
<th>所属代理</th>
|
||||
<th>是否启用</th>
|
||||
<th>是否在线</th>
|
||||
<th>坐标</th>
|
||||
<th>mac</th>
|
||||
<th>创建时间</th>
|
||||
<th>最后登陆时间</th>
|
||||
@ -129,8 +127,6 @@
|
||||
<td>{$item.invite}</td>
|
||||
<td>{$item.agency.username}</td>
|
||||
<td>{$item.state_text}</td>
|
||||
<td>是否在线</td>
|
||||
<td>坐标</td>
|
||||
<td>{$item.mac}</td>
|
||||
<td>{$item.register_time}</td>
|
||||
<td>{$item.last_login_time}</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user