$index)) { Logger::error("Cache-error", [ $user, $indexs, $index ]); throw new \InvalidArgumentException("参数错误"); } $arg2[$index] = $user->$index; } static::jobUpdate($arg2); } /** * 使用任务更新 * * @param $arg * @return void */ static protected function jobUpdate($parameter) { Redis::addQueue([static::class, 'updateSync'], $parameter, static::getDelay()); } }