public function actionGene_pwd() { if (!Yii::$app->request->isPost) { return $this->renderJSON([], "系统繁忙,请稍后重试", -1); } return $this->renderJSON(['pwd' => UtilHelper::gene_password([1, 2])]); }