!81 字段错误修改

Merge pull request !81 from 赵世界/develop
This commit is contained in:
赵世界 2022-08-30 15:54:29 +00:00 committed by Gitee
commit cca3c67485
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 0 additions and 3 deletions

View File

@ -44,8 +44,6 @@ abstract class BusinessClient
$orderRecord->update($order); $orderRecord->update($order);
} }
foreach ($order['sub_order_list'] as $item) { foreach ($order['sub_order_list'] as $item) {
$item['update_time'] = $item['updated_at'];
unset($item['updated_at']);
$item['shop_id'] = $shopId; $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); $orderItem = BusinessOrderItem::firstOrNew(['shop_id' => $shopId, 'business_order_id' => $orderRecord->id, 'goods_id' => $item['goods_id'], 'sku_id' => $item['sku_id']], $item);
$num = 0; $num = 0;

View File

@ -38,7 +38,6 @@ class CreateBusinessOrderItemsTable extends Migration
$table->bigInteger('theoretically_refund_amount')->nullable(); $table->bigInteger('theoretically_refund_amount')->nullable();
$table->string('thumb_url')->nullable(); $table->string('thumb_url')->nullable();
$table->integer('verification_number')->nullable(); $table->integer('verification_number')->nullable();
$table->bigInteger('update_time')->nullable();
$table->timestamps(); $table->timestamps();
// 索引 // 索引
$table->index(['shop_id', 'business_order_id', 'goods_id', 'sku_id']); $table->index(['shop_id', 'business_order_id', 'goods_id', 'sku_id']);