- fixed bug in ReadStore where not set lng and lat correctly.

This commit is contained in:
gazebo
2018-10-30 19:22:32 +08:00
parent 1bdb67864d
commit 0d0e609c66
2 changed files with 16 additions and 14 deletions

View File

@@ -229,7 +229,9 @@ func GetVendorStore(ctx *jxcontext.Context, vendorStoreID string, vendorID int)
result, err2 := handler.ReadStore(vendorStoreID)
if err = err2; err == nil {
retVal = &StoreExt{
Store: *result,
Store: *result,
FloatLng: jxutils.IntCoordinate2Standard(result.Lng),
FloatLat: jxutils.IntCoordinate2Standard(result.Lat),
}
db := dao.GetDB()
if city, err2 := dao.GetPlaceByCode(db, result.CityCode); err2 == nil {