fix: 移除 type 字段插入(数据库已回滚)

pull/19/head
Council 2026-04-21 12:44:37 +08:00
parent c134351c82
commit 416fe0a067
1 changed files with 2 additions and 3 deletions

View File

@ -218,12 +218,11 @@ class SeatSkuService extends BaseService
throw new \Exception("GoodsSpecBase 写入失败 (seat: {$seatId})"); throw new \Exception("GoodsSpecBase 写入失败 (seat: {$seatId})");
} }
// 4 条 GoodsSpecValue每条对应一个维度 // 4 条 GoodsSpecValue每条对应一个维度(按 SPEC_DIMS 顺序)
foreach ($s['spec_values'] as $idx => $specVal) { foreach ($s['spec_values'] as $specVal) {
$valueBatch[] = [ $valueBatch[] = [
'goods_id' => $goodsId, 'goods_id' => $goodsId,
'goods_spec_base_id' => $baseId, 'goods_spec_base_id' => $baseId,
'type' => self::SPEC_DIMS[$idx] ?? '',
'value' => (string)$specVal, 'value' => (string)$specVal,
'md5_key' => md5((string)$specVal), 'md5_key' => md5((string)$specVal),
'add_time' => $now, 'add_time' => $now,