Commit df1f8139 by 杨树贤

添加调试

parent 584c9624
Showing with 3 additions and 1 deletions
...@@ -34,8 +34,10 @@ class SyncAllSupplierToErp extends Command ...@@ -34,8 +34,10 @@ class SyncAllSupplierToErp extends Command
*/ */
public function handle() public function handle()
{ {
$supplierIds = SupplierChannelModel::where('is_type',0)->get(); $supplierIds = SupplierChannelModel::where('is_type', 0)->pluck('supplier_id')->toArray();
foreach ($supplierIds as $supplierId) { foreach ($supplierIds as $supplierId) {
usleep(100000);
dump($supplierId);
(new SyncSupplierService())->syncSupplierToErp($supplierId); (new SyncSupplierService())->syncSupplierToErp($supplierId);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment