Commit 33c0e925 authored by xiabin's avatar xiabin

修改配置文件

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