public function actionProfile()
{
/** @var UserInfo $model */
$model = UserInfo::findOne(['user_id' => Yii::$app->user->id]);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
$this->flash('更新成功', 'success');
return $this->refresh();
}
return $this->render('profile', ['model' => $model]);
}