From 0e323ad7f5e91710afec7a01e3186268bf3e97f6 Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期五, 02 八月 2019 14:06:37 +0800 Subject: [PATCH] fix bug --- service/FaceSdkService.go | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/service/FaceSdkService.go b/service/FaceSdkService.go index c7ee4b7..43a4101 100644 --- a/service/FaceSdkService.go +++ b/service/FaceSdkService.go @@ -11,6 +11,7 @@ "sync" "time" "webserver/extend/logger" + "webserver/extend/util" ) type FaceSdkService struct { @@ -262,7 +263,12 @@ if err := proto.Unmarshal(resultBytes, &rMsg); err == nil { logger.Debug("received MSG:", rMsg.Cid) i := protomsg.Image{} - err := proto.Unmarshal(rMsg.Data, &i) + bdata, err := util.UnCompress(rMsg.Data) + if err !=nil { + logger.Debug("uncompress err:",err) + continue + } + err = proto.Unmarshal(bdata, &i) if err !=nil { continue } -- Gitblit v1.8.0