!100 商品下载优化

Merge pull request !100 from develop
This commit is contained in:
赵世界 2022-09-15 10:08:18 +00:00 committed by Gitee
commit 479fccda77
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,9 @@ class Goods
); );
if (empty($businessGood->id)) { if (empty($businessGood->id)) {
$businessGoodSku->save(); $businessGoodSku->save();
event(new BusinessOrdersUpdate($businessGoodSku, 0)); if (!empty($businessGoodSku->external_sku_id)) {
event(new BusinessOrdersUpdate($businessGoodSku, 0));
}
} }
} }
} }

View File

@ -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('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');