Explorar o código

feat: EK-856: 管理员增加“Country”属性.

kevinElken hai 10 meses
pai
achega
6f31bfa390
Modificáronse 1 ficheiros con 1 adicións e 5 borrados
  1. 1 5
      backendApi/modules/v1/controllers/ShopController.php

+ 1 - 5
backendApi/modules/v1/controllers/ShopController.php

@@ -939,11 +939,7 @@ class ShopController extends BaseController {
             $quotedAdminCountry = array_map(function($item) {
                 return "'" . addslashes($item) . "'";
             }, $adminCountry);
-            if ($filter['condition']) {
-                $filter['condition'] .= ' AND UI.DELETED=0 AND U.COUNTRY_ID IN (' . implode(',', $quotedAdminCountry) . ')';
-            } else {
-                $filter['condition'] = ' UI.DELETED=0 AND U.COUNTRY_ID IN (' . implode(',', $quotedAdminCountry) . ')';
-            }
+            $filter['condition'] .= ' AND UI.DELETED=0 AND U.COUNTRY_ID IN (' . implode(',', $quotedAdminCountry) . ')';
 
             $listObj = new OrderPeriodAdjustList();
             $data = $listObj->getList(['condition' => $filter['condition'], 'params' => $filter['params']]);