request; if ($request->isAjax) { // 提交等级内容 if ($request->isPost) { $params = Yii::$app->request->post(); $res = Yii::$app->services->validate->validate($params, [ [['id'], 'required'], ]); if ($res === false) return $this->error(Yii::$app->services->validate->getErrorMessage()); $where[] = ['=','rid',$params['id']]; $where[] = ['=','mall_id',$this->mall_id]; $where[] = ['=','status',StatusEnum::ENABLED]; $order = 'id desc'; $list = ScoreExpansionUserGrab::listPage(['where' => $where,'order' => $order,'with' => ['user']],false); return $this->success('操作成功',$list); } } } catch (\Exception $e) { return $this->error($e->getMessage(), []); } return $this->render($this->action->id); } }