|
|
|
|
@ -247,7 +247,7 @@ class SupplyDemandController extends CommonController
|
|
|
|
|
$messageToday = Message::where('user_id', $this->getUserId())
|
|
|
|
|
->where('created_at', 'like', '%' . date('Y-m-d') . '%')
|
|
|
|
|
->get();
|
|
|
|
|
if ($messageToday > $message_limit) {
|
|
|
|
|
if ($messageToday->count() > $message_limit) {
|
|
|
|
|
return $this->fail([ResponseCode::ERROR_BUSINESS, '今天私信次数已达上限']);
|
|
|
|
|
}
|
|
|
|
|
// 有且仅有自己发的信息,则不能发再
|
|
|
|
|
|