瀏覽代碼

修复:未填写划线价报错

萤火科技 5 年之前
父節點
當前提交
ec5fba7fa1
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  1. 1 0
      app/store/model/Goods.php

+ 1 - 0
app/store/model/Goods.php

@@ -96,6 +96,7 @@ class Goods extends GoodsModel
     {
         // 默认数据
         $data = array_merge($data, [
+            'line_price' => $data['line_price'] ?? 0,
             'content' => $data['content'] ?? '',
             'newSpecList' => [],
             'newSkuList' => [],