From 6dec884e1f0ba886953168de583044aabb20b270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Thu, 15 Sep 2022 18:07:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=BA=97=E9=93=BA=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=9B=B4=E6=96=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Business/KuaiTuanTuan/Goods.php | 4 +++- routes/api.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/Business/KuaiTuanTuan/Goods.php b/app/Services/Business/KuaiTuanTuan/Goods.php index a4a3fb3..b488c79 100644 --- a/app/Services/Business/KuaiTuanTuan/Goods.php +++ b/app/Services/Business/KuaiTuanTuan/Goods.php @@ -38,7 +38,9 @@ class Goods ); if (empty($businessGood->id)) { $businessGoodSku->save(); - event(new BusinessOrdersUpdate($businessGoodSku, 0)); + if (!empty($businessGoodSku->external_sku_id)) { + event(new BusinessOrdersUpdate($businessGoodSku, 0)); + } } } } diff --git a/routes/api.php b/routes/api.php index a4925ca..873f0b8 100644 --- a/routes/api.php +++ b/routes/api.php @@ -63,4 +63,4 @@ Route::get('shop_platforms', [ShopsController::class, 'getPlatList'])->name('pla Route::post('business', [ShopsController::class, 'business'])->name('shop.put.business'); // 盘点导入 -Route::post('inventory/goods_skus', [GoodsSkusController::class, 'inventoryImport'])->name('goods_sku.inventory')->middleware('check.permissions'); +Route::post('inventory/goods_skus', [GoodsSkusController::class, 'inventoryImport'])->name('goods_sku.inventory');