|
@@ -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();
|