Commit 21ca5cd2 authored by xiabin's avatar xiabin

修改配置

parent bf1b0acc
......@@ -107,7 +107,7 @@ class HomeController extends \yii\web\Controller
*/
public function actionGetRecommendCourses($classId)
{
if (Yii::$app->request->isAjax or true) {
if (Yii::$app->request->isAjax) {
$result = Course::getRecommendByClassId($classId);
} else {
throw new ForbiddenHttpException('非法请求');
......
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