|
@@ -487,7 +487,11 @@ class CircleMessageRepository
|
|
|
}
|
|
|
|
|
|
$oneHourTime = Carbon::now()->addHours(-1)->toDateTimeString();
|
|
|
- $oneHourPostCount = $this->interestCirclePicture->where('uid', $userInfo['uid'])->where('created_at', '>', $oneHourTime)->count();
|
|
|
+ $oneHourPostCount = $this->interestCirclePicture
|
|
|
+ ->where('uid', $userInfo['uid'])
|
|
|
+ ->where('is_main', 1)
|
|
|
+ ->where('created_at', '>', $oneHourTime)
|
|
|
+ ->count();
|
|
|
if ($oneHourPostCount > 5) {
|
|
|
return jsonError('创作欲望太强啦,休息一下,看看其他用户的提问吧!');
|
|
|
}
|