|
|
@ -122,6 +122,7 @@ class ProductServiceProvider extends ServiceProvider |
|
|
$agentProduct->spec()->createMany($agentSpecArr); |
|
|
$agentProduct->spec()->createMany($agentSpecArr); |
|
|
} |
|
|
} |
|
|
DB::commit(); |
|
|
DB::commit(); |
|
|
|
|
|
Log::info($v . "自动上架{$product->id}成功!"); |
|
|
if(env('SMS_SWITCH','') == true) { |
|
|
if(env('SMS_SWITCH','') == true) { |
|
|
$phone = Agent::query()->where('id',$v)->value('contact_mobile'); |
|
|
$phone = Agent::query()->where('id',$v)->value('contact_mobile'); |
|
|
(new SmsService)->send('auto_shelves',[$product->supplier->name,now(),SmsTraits::$systeaNameText['agent']],[$phone]); |
|
|
(new SmsService)->send('auto_shelves',[$product->supplier->name,now(),SmsTraits::$systeaNameText['agent']],[$phone]); |
|
|
|