Explorar el Código

修复:未填写划线价报错

萤火科技 hace 5 años
padre
commit
ec5fba7fa1
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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' => [],