feat: new

This commit is contained in:
zhangsz
2025-06-16 11:28:45 +08:00
parent 147ae77249
commit cda02d6b5c
9 changed files with 99 additions and 29 deletions

View File

@@ -93,15 +93,9 @@ func PostCDREventFrom(w http.ResponseWriter, r *http.Request) {
// 解析座席列表响应
var agentResp struct {
Code int `json:"code"`
Data []struct {
Domain string `json:"domain"`
Index int `json:"index"`
Name string `json:"name"`
Online bool `json:"online"`
Password string `json:"password"`
} `json:"data"`
Msg string `json:"msg"`
Code int `json:"code"`
Data []ueCallBackTicket.AgentInfo `json:"data"`
Msg string `json:"msg"`
}
if err := json.NewDecoder(resp.Body).Decode(&agentResp); err != nil {
@@ -130,6 +124,7 @@ func PostCDREventFrom(w http.ResponseWriter, r *http.Request) {
AgentName: selectedAgent,
Comment: "",
MsdData: cdrEvent.CDR["msdData"].(string),
RmUid: cdrEvent.RmUID,
CreatedAt: time.Now().UnixMicro(),
UpdatedAt: updatedAt,
}