fix: 移除 type 字段插入(数据库已回滚)
parent
c134351c82
commit
416fe0a067
|
|
@ -218,12 +218,11 @@ class SeatSkuService extends BaseService
|
|||
throw new \Exception("GoodsSpecBase 写入失败 (seat: {$seatId})");
|
||||
}
|
||||
|
||||
// 4 条 GoodsSpecValue,每条对应一个维度
|
||||
foreach ($s['spec_values'] as $idx => $specVal) {
|
||||
// 4 条 GoodsSpecValue,每条对应一个维度(按 SPEC_DIMS 顺序)
|
||||
foreach ($s['spec_values'] as $specVal) {
|
||||
$valueBatch[] = [
|
||||
'goods_id' => $goodsId,
|
||||
'goods_spec_base_id' => $baseId,
|
||||
'type' => self::SPEC_DIMS[$idx] ?? '',
|
||||
'value' => (string)$specVal,
|
||||
'md5_key' => md5((string)$specVal),
|
||||
'add_time' => $now,
|
||||
|
|
|
|||
Loading…
Reference in New Issue