log
This commit is contained in:
@@ -105,6 +105,7 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
|
||||
localStore *LocalStore
|
||||
vertex []warehouse_createFence_request.VerticesItem
|
||||
param = &warehouse_createFence_request.WarehouseCreateFenceParam{}
|
||||
circular = warehouse_createFence_request.Circular{}
|
||||
)
|
||||
sqlParam := []interface{}{}
|
||||
sqlStr := `SELECT t.lng,t.lat,t.delivery_range_type,t.delivery_range FROM store t`
|
||||
@@ -117,7 +118,7 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
|
||||
if err = dao.GetRow(db, &localStore, sqlStr, sqlParam...); err == nil {
|
||||
globals.SugarLogger.Debug("localStore.DeliveryRangeType==============", localStore.DeliveryRangeType)
|
||||
if localStore.DeliveryRangeType == LocalShapeCircular {
|
||||
circular := &warehouse_createFence_request.Circular{
|
||||
circular = warehouse_createFence_request.Circular{
|
||||
Center: &warehouse_createFence_request.Center{
|
||||
Longitude: utils.Int2Float64(localStore.Lng),
|
||||
Latitude: utils.Int2Float64(localStore.Lat),
|
||||
@@ -126,7 +127,7 @@ func CreateFenceByStore(appOrgCode string, storeID int64) (fenceID string, err e
|
||||
}
|
||||
globals.SugarLogger.Debugf("Latitude============%f,%f,%f", circular.Center.Latitude, circular.Center.Longitude, circular.Radius)
|
||||
globals.SugarLogger.Debugf("circular=====%v", circular)
|
||||
param.FenceInfo.Circular = circular
|
||||
param.FenceInfo.Circular = &circular
|
||||
param.FenceInfo.Shape = tiktok_api.ShapeCircular
|
||||
globals.SugarLogger.Debug("圆:lat,lng", circular.Center.Latitude, circular.Center.Longitude)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user