aa
This commit is contained in:
@@ -3588,7 +3588,7 @@ func CreateStoreAudit(ctx *jxcontext.Context, storeAudit *model.StoreAudit) (err
|
||||
return fmt.Errorf("门店地址必填!")
|
||||
}
|
||||
if storeAudit.Lng == 0 || storeAudit.Lat == 0 {
|
||||
lng, lat, _ := api.AutonaviAPI.GetCoordinateFromAddressByPage(storeAudit.Address)
|
||||
lng, lat, _ := api.AutonaviAPI.GetCoordinateFromAddress(storeAudit.Address, "")
|
||||
if lng != 0 && lat != 0 {
|
||||
storeAudit.Lng = jxutils.StandardCoordinate2Int(lng)
|
||||
storeAudit.Lat = jxutils.StandardCoordinate2Int(lat)
|
||||
|
||||
Reference in New Issue
Block a user