application/manage/controller/MemberGroup.php
public function modifyGroup(Request $request)
    {
        $id = $request->param('id');
        if (empty($id)) {
            return $this->error('ID为空');
        }
        
        $field_arr = [
            'group_status'
        ];
        $field = $request->param('field');
        if (! in_array($field, $field_arr)) {
            return $this->error('非法的字段');
        }
        
        $value = $request->param('value', '');
        MemberGroupLogic::model()->modify($id, $field, $value);
        
        return $this->success('更改成功');
    }
public function modifyGroup(Request $request)
    {
        $id = $request->param('id');
        if (empty($id)) {
            return $this->error('ID为空');
        }
        
        $field_arr = [
            'group_status'
        ];
        $field = $request->param('field');
        if (! in_array($field, $field_arr)) {
            return $this->error('非法的字段');
        }
        
        $value = $request->param('value', '');
        MemberGroupLogic::model()->modify($id, $field, $value);
        
        return $this->success('更改成功');
    }
更改群组

@param Request $request
@return mixed