Просмотр исходного кода

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

QuliKnight@users.noreply.github.com месяцев назад: 4
Родитель
Сommit
005e4a5f2d
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/common/repositories/store/product/ProductRepository.php

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

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