auth_key = Yii::$app->security->generateRandomString(); $user->save(false); return '用户已被强制下线'; } else { return '用户不存在'; } } }