|
@@ -68,7 +68,10 @@ class ImitateCommentlikesStepJob implements ShouldQueue
|
|
|
|
|
|
|
|
|
if($comment_author_id > 0){
|
|
|
- ImitateUserFollowsStepJob::dispatch($comment_author_id, mini_rand(0, 2))->delay(now()->addMinutes(mini_rand(1, 20)));
|
|
|
+ $follow_rate = _between_(Settings::get('robot_action_follow_rate', 100), 0, 100) / 100;
|
|
|
+ if($follow_rate != 0){
|
|
|
+ ImitateUserFollowsStepJob::dispatch($comment_author_id, mini_rand(0, 2))->delay(now()->addMinutes(mini_rand(1, 20)));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
ImitateCommentlikesStepJob::dispatch($this->comment_id, ($this->need_like - 1))->delay(now()->addMinutes(mini_rand(6, 30)));
|