|
@@ -77,7 +77,7 @@ class SubscribeController extends Controller
|
|
|
$this->subscribeLog($subscribe->id, IP::getClientIp(), $request->headers);
|
|
|
|
|
|
|
|
|
- $query = $user->whereIsSubscribe(1)->nodes();
|
|
|
+ $query = $user->nodes()->whereIsSubscribe(1);
|
|
|
|
|
|
if ($this->subType === 1) {
|
|
|
$query = $query->whereIn('type', [1, 4]);
|