* [ * 'uid' => '1', * 'orderId' => 1 * 'ranseId' => 1, * ] * */ private $info; /** * Create a new job instance. */ public function __construct($info) { $this->info = $info; } /** * Execute the job. */ public function handle(): void { /** * 1, 所有的订单日志都记录 */ $traceContext = TraceContext::newFromParent($this->info['traceInfo']); myLog('reportCharge')->info('开始处理订单回传', [ 'orderInfo' => $this->info, 'traceInfo' => $traceContext->getTraceInfo() ]); $reportService = new JuliangAccountReportChargeService($this->info['uid'], $this->info['orderId'], $this->info['traceInfo']); $reportService->report(); } }