1
This commit is contained in:
@@ -448,7 +448,6 @@ func UpdateFakeWayBillToTiktok() {
|
||||
dao.UpdateEntity(dao.GetDB(), fakeWayBill[i], "Status")
|
||||
continue
|
||||
}
|
||||
globals.SugarLogger.Debugf("==============riderInfo : %s", utils.Format4Output(riderInfo, false))
|
||||
if riderInfo.CourierName == "" && fakeWayBill[i].CourierName != "" {
|
||||
riderInfo.CourierName = fakeWayBill[i].CourierName
|
||||
riderInfo.CourierPhone = fakeWayBill[i].CourierMobile
|
||||
@@ -462,7 +461,6 @@ func UpdateFakeWayBillToTiktok() {
|
||||
}
|
||||
riderInfo.LogisticsProviderCode = tiktok_api.JxVendorId2TiktokCode(fakeWayBill[i].WaybillVendorID)
|
||||
|
||||
globals.SugarLogger.Debugf("==============riderInfo : %s", utils.Format4Output(riderInfo, false))
|
||||
// 推送骑手信息
|
||||
paramsMap := utils.Struct2Map(riderInfo, "", true)
|
||||
handler := partner.GetPurchaseOrderHandlerFromVendorID(fakeWayBill[i].OrderVendorID)
|
||||
|
||||
@@ -250,7 +250,7 @@ func (p *PurchaseHandler) GetOrderRider(vendorOrgCode, vendorStoreID string, par
|
||||
//api.AutonaviAPI.
|
||||
if param["latitude"].(string) != "" && param["longitude"].(string) != "" {
|
||||
if len(param["latitude"].(string)) > len("39.978573") && len(param["longitude"].(string)) > len("116.5031060") { // 是否为百度坐标
|
||||
lng, lat, _ := api.AutonaviAPI.CoordinateConvert(param["latitude"].(float64), param["longitude"].(float64), autonavi.CoordSysBaidu)
|
||||
lng, lat, _ := api.AutonaviAPI.CoordinateConvert(utils.Str2Float64(param["latitude"].(string)), utils.Str2Float64(param["longitude"].(string)), autonavi.CoordSysBaidu)
|
||||
param["latitude"] = utils.Float64ToStr(lat)
|
||||
param["longitude"] = utils.Float64ToStr(lng)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user