逻辑增加
This commit is contained in:
@@ -814,6 +814,9 @@ func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorS
|
|||||||
if store, err := handler.GetStore(ctx, 0, vendorStoreID); err == nil {
|
if store, err := handler.GetStore(ctx, 0, vendorStoreID); err == nil {
|
||||||
retVal = &StoreExt{
|
retVal = &StoreExt{
|
||||||
Store: store.Store,
|
Store: store.Store,
|
||||||
|
//暂时添加上
|
||||||
|
FloatLng: jxutils.IntCoordinate2Standard(store.Lng),
|
||||||
|
FloatLat: jxutils.IntCoordinate2Standard(store.Lat),
|
||||||
}
|
}
|
||||||
retVal.Name = store.Name
|
retVal.Name = store.Name
|
||||||
retVal.BussinessStatus = store.CourierStatus
|
retVal.BussinessStatus = store.CourierStatus
|
||||||
|
|||||||
@@ -63,10 +63,10 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt
|
|||||||
VendorStoreID: utils.Int64ToStr(storeInfo.StoreDetail.Store.StoreId),
|
VendorStoreID: utils.Int64ToStr(storeInfo.StoreDetail.Store.StoreId),
|
||||||
CourierStatus: int(storeInfo.StoreDetail.Store.State),
|
CourierStatus: int(storeInfo.StoreDetail.Store.State),
|
||||||
}
|
}
|
||||||
|
globals.SugarLogger.Debugf("storeDetail.Store.Lng====%d,storeDetail.Store.Lat==========%d", storeDetail.Store.Lng, storeDetail.Store.Lat)
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Debugf("GetStoreDetail err=========%s", err)
|
globals.SugarLogger.Debugf("GetStoreDetail err=========%s", err)
|
||||||
}
|
}
|
||||||
globals.SugarLogger.Debugf("storeDetail.Store.Lng====%d,storeDetail.Store.Lat==========%d", storeDetail.Store.Lng, storeDetail.Store.Lat)
|
|
||||||
globals.SugarLogger.Debugf("DYPS GetStore storeDetail====%s", utils.Format4Output(storeDetail, false))
|
globals.SugarLogger.Debugf("DYPS GetStore storeDetail====%s", utils.Format4Output(storeDetail, false))
|
||||||
return storeDetail, err
|
return storeDetail, err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user