From f24c62fc8cf7944706510cae5374b3e191ae5653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Tue, 30 Aug 2022 23:53:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#10000=20=E5=AD=97=E6=AE=B5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Business/BusinessClient.php | 2 -- .../2022_08_05_093658_create_business_order_items_table.php | 1 - 2 files changed, 3 deletions(-) diff --git a/app/Services/Business/BusinessClient.php b/app/Services/Business/BusinessClient.php index d0be26f..ddc5a02 100644 --- a/app/Services/Business/BusinessClient.php +++ b/app/Services/Business/BusinessClient.php @@ -44,8 +44,6 @@ abstract class BusinessClient $orderRecord->update($order); } foreach ($order['sub_order_list'] as $item) { - $item['update_time'] = $item['updated_at']; - unset($item['updated_at']); $item['shop_id'] = $shopId; $orderItem = BusinessOrderItem::firstOrNew(['shop_id' => $shopId, 'business_order_id' => $orderRecord->id, 'goods_id' => $item['goods_id'], 'sku_id' => $item['sku_id']], $item); $num = 0; diff --git a/database/migrations/2022_08_05_093658_create_business_order_items_table.php b/database/migrations/2022_08_05_093658_create_business_order_items_table.php index f5ce467..e4bc837 100644 --- a/database/migrations/2022_08_05_093658_create_business_order_items_table.php +++ b/database/migrations/2022_08_05_093658_create_business_order_items_table.php @@ -38,7 +38,6 @@ class CreateBusinessOrderItemsTable extends Migration $table->bigInteger('theoretically_refund_amount')->nullable(); $table->string('thumb_url')->nullable(); $table->integer('verification_number')->nullable(); - $table->bigInteger('update_time')->nullable(); $table->timestamps(); // 索引 $table->index(['shop_id', 'business_order_id', 'goods_id', 'sku_id']);