'区分端', ]; } public function getAgreement() { if (!$this->validate()){ throw new Exception($this->getErrorMsg()); } return BaseConfig::find() ->where([ 'end' => $this->end, 'status' => 0, 'store_id'=>\Yii::$app->store ])->andWhere(['type'=>[1,2]]) ->select(['content', 'change_at']) ->orderBy(['change_at' => SORT_DESC]) ->all(); } }