Browse Source

修复更新商品 对下架商品无效问题

master
Lemon 5 years ago
parent
commit
8a67a6869e
  1. 9
      app/Service/v3/Implementations/GoodsService.php

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

@ -102,12 +102,15 @@ class GoodsService implements GoodsServiceInterface
public function update($params)
{
$goods = Goods::query()->where(
var_dump($params);
$goods = Goods::query()->withoutGlobalScope('normal')
->where(
[
'id' => $params['id'],
'market_id' => $params['market_id'],
'store_id' => $params['store_id']
])
]
)
->update(
[
'name' => $params['name'],
@ -123,7 +126,7 @@ class GoodsService implements GoodsServiceInterface
'tags' => $params['tags'],
'remark' => $params['remark'],
'on_sale' => $params['on_sale'],
'is_infinite' => $params['is_infinite'],
'is_infinite' => $params['is_infinite']
]);
return $goods;
}

Loading…
Cancel
Save