Explorar o código

商品规格-增加商品规格是否可下单的状态

QuliKnight@users.noreply.github.com hai 4 meses
pai
achega
005e4a5f2d

+ 2 - 0
app/common/repositories/store/product/ProductRepository.php

@@ -465,6 +465,7 @@ class ProductRepository extends BaseRepository
465 465
                         "share_num"     => 0,
466 466
                         "stock_num"     => 0,
467 467
                         "shares_num"    => 0,
468
+                        "is_usable"     => isset($value['is_usable']) ? (int)$value['is_usable'] : 0,
468 469
                         'gong_mer_profit' => $value['gong_mer_profit'] ?? 0.00,
469 470
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
470 471
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,
@@ -492,6 +493,7 @@ class ProductRepository extends BaseRepository
492 493
                         "share_num"     => (isset($value['share_num']) && $value['share_num'] !== '') ? $value['share_num'] : 0,
493 494
                         "stock_num"     => (isset($value['stock_num']) && $value['stock_num'] !== '') ? $value['stock_num'] : 0,
494 495
                         "shares_num"    => (isset($value['shares_num']) && $value['shares_num'] !== '') ? $value['shares_num'] : 0,
496
+                        "is_usable"     => isset($value['is_usable']) ? (int)$value['is_usable'] : 0,
495 497
                         'gong_mer_profit' => $value['gong_mer_profit'] ?? 0.00,
496 498
                         'gong_market_price' => $value['gong_market_price'] ?? 0.00,
497 499
                         'plate_mer_profit' => $value['plate_mer_profit'] ?? 0.00,