diff --git a/app/api/lists/product/ProductLists.php b/app/api/lists/product/ProductLists.php index a6eb8483..b13a6050 100644 --- a/app/api/lists/product/ProductLists.php +++ b/app/api/lists/product/ProductLists.php @@ -108,8 +108,14 @@ class ProductLists extends BaseApiDataLists implements ListsSearchInterface, Lis $price = 'price'; $op_price = 'price'; $off_activity = 0; - if ($this->userId > 0) { - $user_ship = User::where('id', $this->userId)->value('user_ship'); + $uid=0; + if($this->request->get('uid')){ + $uid=$this->request->get('uid'); + }elseif($this->userId>0){ + $uid=$this->userId; + } + if ($uid > 0) { + $user_ship = User::where('id', $uid)->value('user_ship'); if (in_array($user_ship, [4, 5, 6, 7])) { $price = 'cost'; $op_price = 'price';