request->post('store_id')??\Yii::$app->request->get('store_id'); if(!$store_id && $action->id !='login'&& $action->id !='phone-number'&& $action->id !='send-code' && $action->id !='config'){ throw new Exception('缺少store_id参数'); } $store=$store_id??11001; \Yii::$app->store = $store; return true; } }