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

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

@@ -918,13 +918,13 @@ class ShopController extends BaseController {
     public function actionNoLoginReconsumeSureOrder(){
         $post = Yii::$app->request->post();
         $countryId = $post['countryId'] ?? null;
-        if (!filter_var($countryId, FILTER_VALIDATE_INT) || (int)$countryId <= 0) {
+        if (!filter_var($countryId, FILTER_VALIDATE_INT) || $countryId <= 0) {
             return static::notice('countryId is required', 400);
         }
 
         $user = 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();