更改:消息发送者id默认为1

This commit is contained in:
yystopf 2026-03-05 16:06:00 +08:00
parent b82980da46
commit 4bfe84e114
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
class Notice::Write::CreateService < Notice::Write::ClientService
attr_accessor :receivers, :sender, :content, :notification_url, :source, :extra, :type
def initialize(receivers, content, notification_url, source, extra={}, type=1, sender=-1)
def initialize(receivers, content, notification_url, source, extra={}, type=1, sender=1)
@receivers = receivers
@sender = sender
@content = content