delay(3)->onConnection('redis')->onQueue('broadcastDetection'); } /** * 双线关系绑定 * @param $mId * @param $pId */ function creatBothJob($mId,$pId){ CreatBothJob::dispatch($mId,$pId)->delay(3)->onConnection('redis')->onQueue('creatBoth'); } /** * 会员等级升级 * @param $pIds */ function verificationLevelJob($pIds){ VerificationLevelJob::dispatch($pIds)->delay(3)->onConnection('redis')->onQueue('newLevel'); } /** * 公排出局 */ function contractCommonJob(){ ContractCommonJob::dispatch()->delay(3)->onConnection('redis')->onQueue('contractCommon'); } }