shish %!s(int64=3) %!d(string=hai) anos
pai
achega
d04f0c4686
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app-hd/controllers/ShopController.php

+ 1 - 0
app-hd/controllers/ShopController.php

@@ -51,6 +51,7 @@ class ShopController extends BaseController
             $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList]], null, 'id,shopName,merchantName,sjId,mainId', 'id');
             $addShopList = ShopClass::getAllByCondition(['mainId' => ['in', $mainIdList]], null, 'id,shopName,merchantName,sjId,mainId', 'id');
         }
         }
         $all = array_merge($shopList, $addShopList);
         $all = array_merge($shopList, $addShopList);
+        $all = array_unique($all);
         $list = array_values($all);
         $list = array_values($all);
         util::success(['list' => $list]);
         util::success(['list' => $list]);
     }
     }