Commit 2c4f52bb authored by shajiaiming's avatar shajiaiming

增加返回数据

parent 0689b20c
......@@ -26,7 +26,7 @@ class ExploreController extends BaseController
foreach ($app_category_model as &$val) {
unset($val->apps);
$val->name = $val->name[$this->lang];
$apps_model = ExploreApp::find()->select('name, icon, app_url, slogan')
$apps_model = ExploreApp::find()->select('id, name, icon, app_url, slogan')
->where(['app_category_id' => (int)$val->id])
->orderBy('sort')
->limit($val->limit)
......@@ -35,7 +35,6 @@ class ExploreController extends BaseController
$app->name = $app->name[$this->lang];
}
$val->apps = $apps_model;
unset($val->id);
unset($val->sort);
unset($val->limit);
unset($val->platform_id);
......
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