Commit 6d585037 authored by shajiaiming's avatar shajiaiming

fix

parent 2da47622
......@@ -51,7 +51,7 @@ class ExploreAppController extends BaseController
$app_category_model = $query->offset(($page - 1) * 10)->limit(10)->asArray()->all();
foreach ($app_category_model as &$val) {
$name = json_decode($val['name'], true);
$val['name'] = $name['zh-CN'];
$val['name'] = $name;
unset($val['platform_id']);
}
$countQuery = clone $query;
......@@ -172,7 +172,7 @@ class ExploreAppController extends BaseController
$app_model = $query->offset(($page - 1) * 10)->limit(10)->asArray()->all();
foreach ($app_model as &$val) {
$name = json_decode($val['name'], true);
$val['name'] = $name['zh-CN'];
$val['name'] = $name;
}
$countQuery = clone $query;
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => '10']);
......
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