Browse Source

模型增加三级分类批量添加

master
Lemon 5 years ago
parent
commit
9e718d4573
  1. 1
      app/Model/v3/Goods.php
  2. 1
      app/Service/v3/Implementations/GoodsService.php

1
app/Model/v3/Goods.php

@ -51,6 +51,7 @@ class Goods extends Model
'store_id', 'store_id',
'name', 'name',
'category_id', 'category_id',
'goods_category_id',
'goods_unit', 'goods_unit',
'price', 'price',
'original_price', 'original_price',

1
app/Service/v3/Implementations/GoodsService.php

@ -102,7 +102,6 @@ class GoodsService implements GoodsServiceInterface
public function update($params) public function update($params)
{ {
var_dump($params);
$goods = Goods::query()->withoutGlobalScope('normal') $goods = Goods::query()->withoutGlobalScope('normal')
->where( ->where(
[ [

Loading…
Cancel
Save