|
|
@@ -42,7 +42,8 @@ class CreateLogisticTimingsTable extends Migration
|
|
|
{
|
|
|
$create_array = [];
|
|
|
$map = $this->getMap();
|
|
|
- $logistic = Logistic::query()->where('name','顺丰特惠')->first();
|
|
|
+ $logistic=Logistic::firstOrCreate(['name'=>'顺丰特惠']);
|
|
|
+// $logistic = Logistic::query()->where('name','顺丰特惠')->first();
|
|
|
$time = \Carbon\Carbon::now()->format('Y-m-d H:i:s');
|
|
|
foreach ($map as $item) {
|
|
|
$provinceName = $item[0];
|