Commit 85dc5d87 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

通过平台ID查找海报 See merge request !97
parents fadf8d25 ec5db90f
......@@ -12,9 +12,17 @@ class CoinPlatformBannerController extends BaseController
{
$code = 0;
$msg = 'success';
$platform_id = Yii::$app->request->get('platform_id', 13);
$platform_id = Yii::$app->request->get('platform_id', '');
if(empty($platform_id)){
$msg = '参数不能为空';
$code = -1;
$data = null;
goto doEnd;
}
$data = CoinPlatformBanner::find()->where(['platform_id' => $platform_id])->asArray()->all();
doEnd :
return ['code' => $code, 'data' => $data, 'msg' => $msg];
}
}
\ 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