1
This commit is contained in:
@@ -206,13 +206,13 @@ func Init() {
|
|||||||
// 每分钟轮询一次,推送骑手信息
|
// 每分钟轮询一次,推送骑手信息
|
||||||
ScheduleTimerFuncByInterval(func() {
|
ScheduleTimerFuncByInterval(func() {
|
||||||
delivery.UpdateFakeWayBillToTiktok()
|
delivery.UpdateFakeWayBillToTiktok()
|
||||||
}, 10*time.Second, 5*time.Second)
|
}, 10*time.Second, 3*time.Minute)
|
||||||
|
|
||||||
// (自动发单拣货,设置骑手)
|
// (自动发单拣货,设置骑手)
|
||||||
ScheduleTimerFuncByInterval(func() {
|
ScheduleTimerFuncByInterval(func() {
|
||||||
auto_delivery.Init() // 初始化骑手列表
|
auto_delivery.Init() // 初始化骑手列表
|
||||||
auto_delivery.AutoSettingFakeDelivery()
|
auto_delivery.AutoSettingFakeDelivery()
|
||||||
}, 10*time.Second, 3*time.Minute)
|
}, 10*time.Second, 5*time.Minute)
|
||||||
|
|
||||||
// 定时任务更新负责人信息
|
// 定时任务更新负责人信息
|
||||||
ScheduleTimerFunc("RefreshStoreOperator", func() {
|
ScheduleTimerFunc("RefreshStoreOperator", func() {
|
||||||
|
|||||||
@@ -122,6 +122,8 @@ func GetOrderRiderInfoToPlatform(orderId string, wayBillStatus int) {
|
|||||||
globals.SugarLogger.Debug("Get Order waybill rider info err MT:%v", err)
|
globals.SugarLogger.Debug("Get Order waybill rider info err MT:%v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,6 +361,7 @@ func UpdateFakeWayBillToTiktok() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < len(fakeWayBill); i++ {
|
for i := 0; i < len(fakeWayBill); i++ {
|
||||||
|
globals.SugarLogger.Debugf("=======fakeWayBill orderID : %s", fakeWayBill[i].VendorOrderID)
|
||||||
// 判断当前订单是否可以推送,UpdatedAt > 当前时间 就跳过
|
// 判断当前订单是否可以推送,UpdatedAt > 当前时间 就跳过
|
||||||
if fakeWayBill[i].StatusTime.After(time.Now()) {
|
if fakeWayBill[i].StatusTime.After(time.Now()) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -1,7 +1,19 @@
|
|||||||
package delivery
|
package delivery
|
||||||
|
|
||||||
import "testing"
|
import (
|
||||||
|
"fmt"
|
||||||
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/jxutils"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
func TestRider(t *testing.T) {
|
func TestRider(t *testing.T) {
|
||||||
GetOrderRiderInfoToPlatform("144228632526740576", 0)
|
GetOrderRiderInfoToPlatform("144228632526740576", 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestCcc(t *testing.T) {
|
||||||
|
aa := utils.Float64ToStr(jxutils.IntCoordinate2Standard(103989607))
|
||||||
|
bb := utils.Float64ToStr(jxutils.IntCoordinate2Standard(30560797))
|
||||||
|
fmt.Println(aa)
|
||||||
|
fmt.Println(bb)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user