fuwencai 1 год назад
Родитель
Сommit
a6966c58db
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      jydocs-back/rpc/stdDocRpc.go

+ 1 - 2
jydocs-back/rpc/stdDocRpc.go

@@ -187,8 +187,7 @@ func DocStatistics(userId, docId string, sign int32) {
 	})
 	if err != nil {
 		log.Printf("%s DocStatistics call error %v\n", userId, err)
-	}
-	if !resp.State {
+	} else if resp != nil && !resp.State {
 		log.Printf("%s DocStatistics fail Message %v\n", userId, resp)
 	}
 }