|
@@ -25,6 +25,7 @@ use App\Models\PostShare;
|
|
|
use App\Models\Topic;
|
|
|
use App\Service\AliYunVodService;
|
|
|
use App\Service\DetectionService;
|
|
|
+use App\Service\RabbitMqUtil;
|
|
|
use App\Traits\CmsTrait;
|
|
|
use App\Traits\PostTrait;
|
|
|
use App\Traits\UserTrait;
|
|
@@ -246,7 +247,8 @@ class PostRepositories
|
|
|
];
|
|
|
Log::debug('h5邀请用户注册' . json_encode($data));
|
|
|
//扔进virus队列
|
|
|
- $this->rabbitMqUtil->push('virus_add', $data);
|
|
|
+ $rabbit = new RabbitMqUtil();
|
|
|
+ $rabbit->push('virus_add', $data);
|
|
|
}
|
|
|
return jsonSuccess([
|
|
|
'post_id' => $post->id,
|