mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-01 08:42:19 +08:00
Merge pull request #2124 from cubxxw/automated-cherry-pick-of-#2068-#2114-upstream-release-v3.6
feat: add scripts verify shell check
This commit is contained in:
commit
57f6638b11
@ -156,27 +156,27 @@ func callbackMsgModify(ctx context.Context, globalConfig *config.GlobalConfig, m
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
func CallbackGroupMsgRead(ctx context.Context, globalConfig *config.GlobalConfig, req *cbapi.CallbackGroupMsgReadReq) error {
|
func CallbackGroupMsgRead(ctx context.Context, globalConfig *config.GlobalConfig, req *cbapi.CallbackGroupMsgReadReq) error {
|
||||||
if !globalConfig.Callback.CallbackGroupMsgRead.Enable || req.ContentType != constant.Text {
|
if !globalConfig.Callback.CallbackGroupMsgRead.Enable {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
req.CallbackCommand = cbapi.CallbackGroupMsgReadCommand
|
req.CallbackCommand = cbapi.CallbackGroupMsgReadCommand
|
||||||
|
|
||||||
resp := &cbapi.CallbackGroupMsgReadResp{}
|
resp := &cbapi.CallbackGroupMsgReadResp{}
|
||||||
if err := http.CallBackPostReturn(ctx, globalConfig.Callback.CallbackUrl, req, resp, globalConfig.Callback.CallbackMsgModify); err != nil {
|
if err := http.CallBackPostReturn(ctx, globalConfig.Callback.CallbackUrl, req, resp, globalConfig.Callback.CallbackGroupMsgRead); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func CallbackSingleMsgRead(ctx context.Context, globalConfig *config.GlobalConfig, req *cbapi.CallbackSingleMsgReadReq) error {
|
func CallbackSingleMsgRead(ctx context.Context, globalConfig *config.GlobalConfig, req *cbapi.CallbackSingleMsgReadReq) error {
|
||||||
if !globalConfig.Callback.CallbackSingleMsgRead.Enable || req.ContentType != constant.Text {
|
if !globalConfig.Callback.CallbackSingleMsgRead.Enable {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
req.CallbackCommand = cbapi.CallbackSingleMsgRead
|
req.CallbackCommand = cbapi.CallbackSingleMsgRead
|
||||||
|
|
||||||
resp := &cbapi.CallbackSingleMsgReadResp{}
|
resp := &cbapi.CallbackSingleMsgReadResp{}
|
||||||
|
|
||||||
if err := http.CallBackPostReturn(ctx, globalConfig.Callback.CallbackUrl, req, resp, globalConfig.Callback.CallbackMsgModify); err != nil {
|
if err := http.CallBackPostReturn(ctx, globalConfig.Callback.CallbackUrl, req, resp, globalConfig.Callback.CallbackSingleMsgRead); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
@ -87,6 +87,7 @@ disabled=(
|
|||||||
2178
|
2178
|
||||||
2064
|
2064
|
||||||
2260
|
2260
|
||||||
|
2261
|
||||||
2043
|
2043
|
||||||
2178
|
2178
|
||||||
2044
|
2044
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user