소스 검색

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

kevinElken 10 달 전
부모
커밋
5cea1056db
2개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 0 2
      backendApi/modules/v1/controllers/ShopController.php
  2. 1 1
      backendApi/modules/v1/controllers/SiteController.php

+ 0 - 2
backendApi/modules/v1/controllers/ShopController.php

@@ -186,8 +186,6 @@ class ShopController extends BaseController {
 
         $countries = array_filter($countries, fn($country) => in_array($country['ID'], $adminCountry));
 
-        LoggerTool::info(json_encode([$countries, $adminCountry]));
-
         foreach ($countries as &$country) {
             // 货币
             $country['LOCAL_CURRENCY_NAME'] = $currencies[$country['LOCAL_CURRENCY_ID']]['NAME'] ?? '';

+ 1 - 1
backendApi/modules/v1/controllers/SiteController.php

@@ -187,7 +187,7 @@ class SiteController extends BaseController
                 $adminId = Yii::$app->getUser()->getUserInfo()['id'];
                 $adminCountry = AdminCountry::getCountry($adminId);
 
-                $countries = array_filter($countries, fn($country) => in_array($country['ID'], $adminCountry));
+//                $countries = array_filter($countries, fn($country) => in_array($country['ID'], $adminCountry));
             }
         }