fix: 移除 type 字段插入(数据库已回滚)
parent
c134351c82
commit
416fe0a067
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue