@@ -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'];