From 4dc34da9871d43b1570a9ee6b44a97522243d72c Mon Sep 17 00:00:00 2001 From: kuangweijian <867034892@qq.com> Date: Fri, 25 Mar 2022 17:21:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UserInput.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/UserInput.php b/src/UserInput.php index ce1beb5..63ad8e0 100644 --- a/src/UserInput.php +++ b/src/UserInput.php @@ -4,21 +4,25 @@ use yii\base\Model; /** - * 用户注册或登录场景模型 + * 说明:用户注册或登录场景模型 + * 属性: + * @name string 用户名 + * @eamil string 用户邮箱 + * @password string 用户密码 + * @pwdConfirm string 确认密码 */ class UserInput extends Model { /** - * @name string 用户名 - * @eamil string 用户邮箱 - * @password string 用户密码 - * @pwdConfirm string 确认密码 + */ public $name; public $email; public $password; public $pwdConfirm; + + public function attributeLabels() { return [