mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 18:18:37 +00:00
fix(feishu): response websocket event as success (#110)
This commit is contained in:
1 parent
ce333c70f3
commit
827c784b62
1 file changed
+3
-1
@@ -317,11 +317,13 @@ func (c *WSClient) sendResponse(original *wsFrame, headers map[string]string) {
|
||||
respHeaders = append(respHeaders, wsHeader{Key: "biz_rt", Value: "0"})
|
||||
|
||||
respPayload, _ := json.Marshal(map[string]any{
|
||||
"code": 0,
|
||||
"code": http.StatusOK,
|
||||
"msg": "success",
|
||||
})
|
||||
|
||||
resp := &wsFrame{
|
||||
SeqID: original.SeqID,
|
||||
LogID: original.LogID,
|
||||
Method: frameTypeData,
|
||||
Service: original.Service,
|
||||
Headers: respHeaders,
|
||||
|
||||
Reference in new issue
Block a user