Commit 270071b7 authored by shajiaiming's avatar shajiaiming

default value

parent f3785c46
......@@ -25,7 +25,7 @@ class ApplicationController extends BaseController
public function actionIndex()
{
$condition = [];
$platform_id = Yii::$app->request->post('platform_id');
$platform_id = Yii::$app->request->post('platform_id', 1);
if(!empty($platform_id)){
$condition = ['platform_id' => $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