Pārlūkot izejas kodu

修改获取商品详情的接口

15313670163 4 dienas atpakaļ
vecāks
revīzija
fc7a9b8809
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/JsonRpc/NewsService.php

+ 1 - 0
app/JsonRpc/NewsService.php

@@ -1665,6 +1665,7 @@ class NewsService implements NewsServiceInterface
         $where = [
             'good.status' => 2,
             'good.website_id' => $data['website_id'],
+            'good.id' => $data['id'],
         ]; 
         $goods = Good::where($where)
             ->where('good.id', $data['id'])