ryan преди 1 седмица
родител
ревизия
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) {
         if (!filter_var($countryId, FILTER_VALIDATE_INT) || (int)$countryId <= 0) {
             return static::notice('countryId is required', 400);
             return static::notice('countryId is required', 400);
         }
         }
-        var_dump($countryId);die();
 
 
         $user_one = User::find()
         $user_one = User::find()
             ->select('ID,USER_NAME')
             ->select('ID,USER_NAME')
-            ->where(['COUNTRY_ID' => (int)$countryId, 'IS_DEC' => 1])
+            ->where(['COUNTRY_ID' => $countryId, 'IS_DEC' => 1])
             ->orderBy(['USER_NAME' => SORT_ASC])
             ->orderBy(['USER_NAME' => SORT_ASC])
             ->asArray()
             ->asArray()
             ->one();
             ->one();