/** * @inheritdoc */ public function attributeLabels() { if (!$this->user) { $this->user = Kiwi::getAdmin(); $this->user->generateAuthKey(); } if (!$this->_attributeLabels) { $this->_attributeLabels = ['roles' => '角色', 'password' => '密码']; $this->_attributeLabels = ArrayHelper::merge($this->user->attributeLabels(), $this->_attributeLabels); } return $this->_attributeLabels; }