Kaynağa Gözat

修改im错误拦截判断

jyq 4 yıl önce
ebeveyn
işleme
fc7628bd30
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      repository/grpc/bsw/im/api.go

+ 3 - 0
repository/grpc/bsw/im/api.go

@@ -12,6 +12,9 @@ import (
 )
 
 func handleErr(err error) {
+	if err == nil {
+		return
+	}
 	s, _ := status.FromError(err)
 
 	panic(application.ErrorBusinessF(application.ErrorCode(s.Code()), s.Message()))