ryan 1 неделя назад
Родитель
Сommit
1435e6724e
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      frontendApi/modules/v1/controllers/ShopController.php

+ 1 - 2
frontendApi/modules/v1/controllers/ShopController.php

@@ -804,11 +804,10 @@ class ShopController extends BaseController {
         if (!filter_var($countryId, FILTER_VALIDATE_INT) || (int)$countryId <= 0) {
             return static::notice('countryId is required', 400);
         }
-        var_dump($countryId);die();
 
         $user_one = User::find()
             ->select('ID,USER_NAME')
-            ->where(['COUNTRY_ID' => (int)$countryId, 'IS_DEC' => 1])
+            ->where(['COUNTRY_ID' => $countryId, 'IS_DEC' => 1])
             ->orderBy(['USER_NAME' => SORT_ASC])
             ->asArray()
             ->one();