@@ -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)
}