1
This commit is contained in:
@@ -2,9 +2,7 @@ package baidunavi
|
||||
|
||||
import (
|
||||
"crypto/md5"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -261,11 +259,5 @@ func (a *API) DirectionLiteRide(coords []*Coordinate) (retVal interface{}, err e
|
||||
}
|
||||
result := string(body)
|
||||
|
||||
path := &RiderPath{}
|
||||
if err := json.Unmarshal([]byte(result), path); err != nil {
|
||||
return result, nil
|
||||
}
|
||||
globals.SugarLogger.Debugf("=======path := %s", utils.Format4Output(path, false))
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user