$label) { if (!$waybills->sync($source)) { $warning = $waybills->connection()->table('courier_unshipped_sync')->where('source', $source)->value('warning'); $this->warn($label.':'.$warning); $failed = true; } else { $state = $waybills->connection()->table('courier_unshipped_sync')->where('source', $source)->first(); $this->info($label.':'.$state->row_count.' 行,缺单号 '.$state->missing_count.' 行。'); } } return $failed ? self::FAILURE : self::SUCCESS; } }