ask('输入用户 uid'); $eventId = $this->ask('推送事件ID'); $user = UserModel::find($userId); $payload = [ 'to_user' => $user->getAuth(), ]; dispatch(new RegistEventJob($eventId, $payload))->onQueue("{push}"); } }