wesmiler 2 лет назад
Родитель
Сommit
900f6e607e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app/Services/Api/MerchantService.php

+ 1 - 2
app/Services/Api/MerchantService.php

@@ -164,8 +164,7 @@ class MerchantService extends BaseService
         $where = ['a.mark'=>1,'b.mark'=>1];
         if($userId){
             $where['a.user_id'] = $userId;
-        }
-        if($id){
+        }else if($id){
             $where['a.id'] = $id;
         }
         $field = ['a.id','a.name','a.user_id','a.type','a.logo','a.category_id','a.business_img','a.albums','a.country','a.city','a.address','a.usdt','a.service_time','a.withdraw_total','a.status','b.username','b.nickname'];