Commit e9f78ac6 authored by shajiaiming's avatar shajiaiming

fix

parent 9bf1a51d
......@@ -93,7 +93,7 @@ class ExploreController extends BaseController
goto doEnd;
}
$coin_banner = CoinBannerItem::find()->select('banner_url, image_url')->where(['platform_id' => $platform_id])->asArray()->all();
$coin_banner = CoinBannerItem::find()->select('banner_url, image_url, title')->where(['platform_id' => $platform_id])->asArray()->all();
$data = $coin_banner;
doEnd :
......
......@@ -9,7 +9,7 @@ use common\models\psources\CoinBannerItem;
class ExploreBannerController extends BaseController
{
public function actionBanner()
public function actionIndex()
{
$msg = 'ok';
$code = 0;
......@@ -23,7 +23,7 @@ class ExploreBannerController extends BaseController
}
$query = CoinBannerItem::find()
->select('id, banner_url, image_url')
->select('id, banner_url, image_url, title')
->where(['platform_id' => $platform_id])
->asArray();
$banner_model = $query->offset(($page - 1) * 10)->limit(10)->asArray()->all();
......
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