Commit 199d9a11 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

fix See merge request !506
parents a8f4d543 ee7ee26d
...@@ -184,6 +184,7 @@ class ExploreAppController extends BaseController ...@@ -184,6 +184,7 @@ class ExploreAppController extends BaseController
} }
$query = ExploreApp::find() $query = ExploreApp::find()
->where(['app_category_id' => $category_id]) ->where(['app_category_id' => $category_id])
->andWhere(['platform_id' => $platform_id])
->asArray(); ->asArray();
$app_model = $query->offset(($page - 1) * $size)->orderBy('sort')->limit($size)->asArray()->all(); $app_model = $query->offset(($page - 1) * $size)->orderBy('sort')->limit($size)->asArray()->all();
foreach ($app_model as &$val) { foreach ($app_model as &$val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment