소스 검색

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

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

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

@@ -25,6 +25,7 @@ use backendApi\modules\v1\models\lists\shop\FlowRemainPvList;
 use common\helpers\Cache;
 use common\helpers\Date;
 use common\helpers\Form;
+use common\helpers\LoggerTool;
 use common\models\CurrencyConversions;
 use common\models\DeclarationPackage;
 use common\models\DecOrder;
@@ -185,6 +186,8 @@ 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'] ?? '';