type = $this->get['type'] ?? 'index'; PluginAccountUser::mQuery()->layTable(function () { $this->title = lang('用户账号管理'); }, function (QueryHelper $query) { $query->where(['status' => intval($this->type === 'index')]); $query->like('code,phone,email,username,nickname')->dateBetween('create_time'); }); } /** * 修改主账号状态 * @auth true */ public function state() { PluginAccountUser::mSave($this->_vali([ 'status.in:0,1' => '状态值范围异常!', 'status.require' => '状态值不能为空!', ])); } /** * 删除主账号. * @auth true */ public function remove() { PluginAccountUser::mDelete(); } }