|
|
@ -59,7 +59,7 @@ type SeqListData struct {
|
|
|
|
func (ws *WServer) argsValidate(m *Req, r int32) (isPass bool, errCode int32, errMsg string, returnData interface{}) {
|
|
|
|
func (ws *WServer) argsValidate(m *Req, r int32) (isPass bool, errCode int32, errMsg string, returnData interface{}) {
|
|
|
|
switch r {
|
|
|
|
switch r {
|
|
|
|
case constant.WSSendMsg:
|
|
|
|
case constant.WSSendMsg:
|
|
|
|
data := open_im_sdk.UserSendMsgReq{}
|
|
|
|
data := open_im_sdk.MsgData{}
|
|
|
|
if err := proto.Unmarshal(m.Data, &data); err != nil {
|
|
|
|
if err := proto.Unmarshal(m.Data, &data); err != nil {
|
|
|
|
log.ErrorByKv("Decode Data struct err", "", "err", err.Error(), "reqIdentifier", r)
|
|
|
|
log.ErrorByKv("Decode Data struct err", "", "err", err.Error(), "reqIdentifier", r)
|
|
|
|
return false, 203, err.Error(), nil
|
|
|
|
return false, 203, err.Error(), nil
|
|
|
|