1
This commit is contained in:
parent
7054b7f32f
commit
66c187a52c
@ -2,7 +2,6 @@ package player
|
||||
|
||||
import (
|
||||
"cs"
|
||||
"encoding/json"
|
||||
"f5"
|
||||
"fmt"
|
||||
"github.com/golang/protobuf/proto"
|
||||
@ -144,12 +143,10 @@ func (this *playerMgr) apiAuthCb(hdr *f5.MsgHdr, msg *cs.CMLogin, reqId int64,
|
||||
f5.GetSysLog().Info("Api服务器JSON 解析错误1\n")
|
||||
return
|
||||
}
|
||||
err := json.Unmarshal([]byte(rsp.GetRawData()), &rspObj)
|
||||
if err != nil {
|
||||
if !rsp.JsonParseOk() {
|
||||
rspMsg.Errcode = proto.Int32(2)
|
||||
rspMsg.Errmsg = proto.String("server internal error")
|
||||
GetWspListener().SendProxyMsg(pendingReq.hdr.Conn, pendingReq.hdr.SocketHandle, &rspMsg)
|
||||
f5.GetSysLog().Info("Api服务器JSON 解析错误:%s\n", err)
|
||||
return
|
||||
}
|
||||
if rspObj.Errcode != 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user