34 lines
733 B
PHP
34 lines
733 B
PHP
<?php
|
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use App\Domains\Config\Services\ConfigService;
|
|
|
|
class ConfigSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$configService = app(ConfigService::class);
|
|
|
|
if ($configService->get('logistics')) {
|
|
return ;
|
|
}
|
|
|
|
$configService->set('logistics', [
|
|
'sf' => '顺丰速运',
|
|
'sto' => '申通快递',
|
|
'yto' => '圆通速递',
|
|
'zto' => '中通快递',
|
|
'best' => '百世快递',
|
|
'yunda' => '韵达快递',
|
|
'ttkd' => '天天快递',
|
|
'ems' => 'EMS邮政特快专递'
|
|
]);
|
|
}
|
|
}
|