Commit cf6656ee authored by shajiaiming's avatar shajiaiming

修复已知问题

parent 0be32d6d
...@@ -91,9 +91,13 @@ class ExploreController extends BaseController ...@@ -91,9 +91,13 @@ class ExploreController extends BaseController
$data = null; $data = null;
goto doEnd; goto doEnd;
} }
$id_arr = explode(',', $ids); $id_arr = explode(',', $ids);
$order = "FIELD(`id`,$ids)";
$apps_model = ExploreApp::find()->select('id, name, icon, type, app_url, slogan') $apps_model = ExploreApp::find()->select('id, name, icon, type, app_url, slogan')
->where(['in', 'id', $id_arr]) ->where(['in', 'id', $id_arr])
->orderBy([$order => true])
->limit(4)
->all(); ->all();
foreach ($apps_model as &$app) { foreach ($apps_model as &$app) {
$app->name = $app->name[$this->lang]; $app->name = $app->name[$this->lang];
......
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