1
This commit is contained in:
@@ -206,7 +206,7 @@ func Init() {
|
|||||||
ScheduleTimerFunc("UpdateTaoTotalMoney", func() {
|
ScheduleTimerFunc("UpdateTaoTotalMoney", func() {
|
||||||
orderman.UpdateTaoSettleInfo()
|
orderman.UpdateTaoSettleInfo()
|
||||||
}, []string{
|
}, []string{
|
||||||
"17:00:00",
|
"17:35:00",
|
||||||
})
|
})
|
||||||
|
|
||||||
// 每分钟轮询一次,推送骑手信息
|
// 每分钟轮询一次,推送骑手信息
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package netspider
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/ditu"
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
@@ -16,21 +15,6 @@ func init() {
|
|||||||
testinit.Init()
|
testinit.Init()
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetStoreListByCoordinate(t *testing.T) {
|
|
||||||
storeList, err := getStoreListByCoordinates(jxcontext.AdminCtx, nil, 3, "成都",
|
|
||||||
[]*ditu.Coordinate{
|
|
||||||
&ditu.Coordinate{
|
|
||||||
Lng: 104.057218,
|
|
||||||
Lat: 30.6949,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
t.Log(utils.Format4Output(storeList, false))
|
|
||||||
t.Log(len(storeList))
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestGetCityShops(t *testing.T) {
|
func TestGetCityShops(t *testing.T) {
|
||||||
shopList, err := GetCityShops(jxcontext.AdminCtx, nil, []int{0, 3}, 510100, 5000, 3000)
|
shopList, err := GetCityShops(jxcontext.AdminCtx, nil, []int{0, 3}, 510100, 5000, 3000)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user