コード例 #1
0
ファイル: AccountController.php プロジェクト: apanly/dream
 public function actionGene_pwd()
 {
     if (!Yii::$app->request->isPost) {
         return $this->renderJSON([], "系统繁忙,请稍后重试", -1);
     }
     return $this->renderJSON(['pwd' => UtilHelper::gene_password([1, 2])]);
 }