Commit 75a43636 authored by shajiaiming's avatar shajiaiming

fix

parent afec9469
...@@ -59,7 +59,7 @@ class ExploreAppCategory extends BaseActiveRecord ...@@ -59,7 +59,7 @@ class ExploreAppCategory extends BaseActiveRecord
public function getApplications() public function getApplications()
{ {
return $this->hasMany(ExploreApp::className(), ['app_category_id' => 'id'])->select(['id', 'name', 'icon', 'app_url', 'slogan', 'type'])->orderBy('sort'); return $this->hasMany(ExploreApp::className(), ['app_category_id' => 'id'])->select(['id', 'name', 'icon', 'app_url', 'slogan', 'type'])->where(['status' => ExploreApp::STATUS_ON])->orderBy('sort');
} }
} }
\ No newline at end of file
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