| xqd
@@ -71,7 +71,7 @@ class RecommendRelation extends ModelBasic
|
|
|
->select();
|
|
|
} elseif ($type == 7) {
|
|
|
//线下活动
|
|
|
- $list = EventRegistration::eventRegistrationList(1, 1);
|
|
|
+ $list = EventRegistration::eventRegistrationList(1, 2);
|
|
|
} elseif ($type == 1) {
|
|
|
$list = self::alias('a')->join('__ARTICLE__ e', 'e.id=a.link_id')
|
|
|
->where(['a.recommend_id' => $recommend_id, 'e.is_show' => 1])
|
| xqd
@@ -178,7 +178,7 @@ class RecommendRelation extends ModelBasic
|
|
|
$count = self::where('a.recommend_id', $recommend_id)->alias('a')->join("Lecturer l", 'l.id=a.link_id')
|
|
|
->where(['l.is_show' => 1, 'l.is_del' => 0])->count();
|
|
|
} else if ($type == 7) {
|
|
|
- $count = EventRegistration::homeCount() > 0 ? 1 : 0;
|
|
|
+ $count = EventRegistration::homeCount() > 0 ? 2 : 0;
|
|
|
} else if ($type == 8) {
|
|
|
$count = self::where('a.recommend_id', $recommend_id)->alias('a')->join("__SPECIAL__ p", 'p.id=a.link_id')
|
|
|
->join('__SPECIAL_SUBJECT__ j', 'j.id=p.subject_id', 'LEFT')->where(['p.is_show' => 1, 'p.status' => 1, 'p.is_pink' => 1, 'p.is_del' => 0])->count();
|