fix: AdapterName JSON tag 写成了 group_name → 修正为 adapter_name
This commit is contained in:
@@ -925,8 +925,8 @@ func handleChat(
|
|||||||
SenderName string `json:"sender_name"`
|
SenderName string `json:"sender_name"`
|
||||||
OriginalUID string `json:"original_uid"`
|
OriginalUID string `json:"original_uid"`
|
||||||
BotUID string `json:"bot_uid"`
|
BotUID string `json:"bot_uid"`
|
||||||
GroupName string
|
GroupName string `json:"group_name,omitempty"`
|
||||||
AdapterName string `json:"group_name,omitempty"`
|
AdapterName string `json:"adapter_name,omitempty"`
|
||||||
} `json:"source,omitempty"`
|
} `json:"source,omitempty"`
|
||||||
}
|
}
|
||||||
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
|
if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user