Compare commits
No commits in common. "9a9cb3b1f0b47aabbf20eeb0e8d98b8d9a22a42e" and "1ff87b20dab522fb66cb14a35a8c3e47d30a634e" have entirely different histories.
9a9cb3b1f0
...
1ff87b20da
@ -634,6 +634,7 @@ func (a *ChatHandler) UserSwitchAutoReplyStatus(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
service.Success(c, resp)
|
service.Success(c, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *ChatHandler) SetSwitchAutoReplyStatus(c *gin.Context) {
|
func (a *ChatHandler) SetSwitchAutoReplyStatus(c *gin.Context) {
|
||||||
chatUser, code := jwt.ParseToChatUser(c)
|
chatUser, code := jwt.ParseToChatUser(c)
|
||||||
if code != 0 {
|
if code != 0 {
|
||||||
@ -656,16 +657,7 @@ func (a *ChatHandler) SetSwitchAutoReplyStatus(c *gin.Context) {
|
|||||||
} else {
|
} else {
|
||||||
msg.Text = "已进入人工,不会接收自动消息"
|
msg.Text = "已进入人工,不会接收自动消息"
|
||||||
}
|
}
|
||||||
sender := &accountFiee.ChatUserData{
|
err := logic.NewMessage(c, &a.cache, chatUser, dto.NewMessageRequest{
|
||||||
ID: a.robot.Info.ID,
|
|
||||||
NickName: a.robot.Name,
|
|
||||||
Account: a.robot.Info.Account,
|
|
||||||
Role: 3,
|
|
||||||
Origin: a.robot.Info.Origin,
|
|
||||||
OriginId: a.robot.Info.OriginId,
|
|
||||||
Avatar: a.robot.Info.Avatar,
|
|
||||||
}
|
|
||||||
err := logic.NewMessage(c, &a.cache, sender, dto.NewMessageRequest{
|
|
||||||
Robot: true,
|
Robot: true,
|
||||||
SessionId: sessionId,
|
SessionId: sessionId,
|
||||||
Message: msg,
|
Message: msg,
|
||||||
|
Loading…
Reference in New Issue
Block a user