diff --git a/app/czg/app/controller/CourseCollectController.php b/app/czg/app/controller/CourseCollectController.php index c93f7e4..ca2e85c 100644 --- a/app/czg/app/controller/CourseCollectController.php +++ b/app/czg/app/controller/CourseCollectController.php @@ -100,7 +100,7 @@ class CourseCollectController extends Frontend if(empty($data['courseDetailsId'])) { $this->error('courseDetailsId不能为空', [], -1); } - $where[] = ['course_details_id', 'eq', $data['courseDetailsId']]; + $where[] = ['course_details_id', '=', $data['courseDetailsId']]; } $model = DatabaseRoute::getDb('course_collect', $this->getUserId()); $info = $model->where($where)->find();