فهرست منبع

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

kevinElken 10 ماه پیش
والد
کامیت
6d58fb52b5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      backendApi/modules/v1/controllers/ShopController.php

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

@@ -185,7 +185,7 @@ class ShopController extends BaseController {
         $adminCountry = AdminCountry::getCountry($adminId);
 
         foreach ($countries as $key => $country) {
-            if (!in_array($country, $adminCountry)) {
+            if (!in_array($country['ID'], $adminCountry)) {
                 unset($countries[$key]);
                 continue;
             }