title = '公众号授权管理'; $query = $this->_query($this->table)->like('authorizer_appid,nick_name,principal_name'); $query = $query->equal('service_type,status')->dateBetween('create_at'); $query->where(['is_deleted' => '0'])->order('id desc')->page(); } /** * 修改公众号状态 * @auth true * @throws \think\db\exception\DbException */ public function state() { $this->_applyFormToken(); $this->_save($this->table, ['status' => input('status')]); } /** * 删除公众号授权 * @auth true * @throws \think\db\exception\DbException */ public function remove() { $this->_applyFormToken(); $this->_delete($this->table); } }