逻辑增加

This commit is contained in:
richboo111
2022-12-22 17:26:48 +08:00
parent 02116faf1b
commit de0af3df9b
2 changed files with 4 additions and 1 deletions

View File

@@ -814,6 +814,9 @@ func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorS
if store, err := handler.GetStore(ctx, 0, vendorStoreID); err == nil {
retVal = &StoreExt{
Store: store.Store,
//暂时添加上
FloatLng: jxutils.IntCoordinate2Standard(store.Lng),
FloatLat: jxutils.IntCoordinate2Standard(store.Lat),
}
retVal.Name = store.Name
retVal.BussinessStatus = store.CourierStatus

View File

@@ -63,10 +63,10 @@ func (c *DeliveryHandler) GetStore(ctx *jxcontext.Context, storeID int, vendorSt
VendorStoreID: utils.Int64ToStr(storeInfo.StoreDetail.Store.StoreId),
CourierStatus: int(storeInfo.StoreDetail.Store.State),
}
globals.SugarLogger.Debugf("storeDetail.Store.Lng====%d,storeDetail.Store.Lat==========%d", storeDetail.Store.Lng, storeDetail.Store.Lat)
} else {
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))
return storeDetail, err
}