Commit 33c0e925 authored by xiabin's avatar xiabin

修改配置文件

parent a847964e
...@@ -4,7 +4,7 @@ $config = [ ...@@ -4,7 +4,7 @@ $config = [
'components' => [ 'components' => [
'request' => [ 'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '1o1zEUf8jdBvsnZy_JygPUO5_sZ7zBci', 'cookieValidationKey' => '',
'parsers' => [ 'parsers' => [
'text/xml' => 'light\yii2\XmlParser', 'text/xml' => 'light\yii2\XmlParser',
'application/xml' => 'light\yii2\XmlParser', 'application/xml' => 'light\yii2\XmlParser',
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
$config = [ $config = [
'components' => [ 'components' => [
'request' => [ 'request' => [
'cookieValidationKey' => '1o1zEUf8jdBvsnZy_JygPUO5_sZ7zBci', 'cookieValidationKey' => '',
'parsers' => [ 'parsers' => [
'text/xml' => 'light\yii2\XmlParser', 'text/xml' => 'light\yii2\XmlParser',
'application/xml' => 'light\yii2\XmlParser', 'application/xml' => 'light\yii2\XmlParser',
......
...@@ -106,7 +106,6 @@ class HomeController extends \yii\web\Controller ...@@ -106,7 +106,6 @@ class HomeController extends \yii\web\Controller
*/ */
public function actionGetRecommendCourses($classId) public function actionGetRecommendCourses($classId)
{ {
if (Yii::$app->request->isAjax) { if (Yii::$app->request->isAjax) {
$result = Course::getRecommendByClassId($classId); $result = Course::getRecommendByClassId($classId);
} else { } else {
......
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