This commit is contained in:
邹宗楠
2024-05-29 14:21:20 +08:00
parent 8c77593d3a
commit 7410975ed0
3 changed files with 27 additions and 9 deletions

View File

@@ -3,9 +3,8 @@ package jd
import (
"encoding/json"
"git.rosy.net.cn/baseapi/utils"
"net/url"
"git.rosy.net.cn/jx-callback/globals/api"
"net/url"
"git.rosy.net.cn/jx-callback/business/model/dao"
@@ -215,6 +214,7 @@ func (p *PurchaseHandler) GetOrderRider(vendorOrgCode, vendorStoreID string, par
deliverInfo.DeliveryManPhone = param["courier_phone"].(string)
case 40:
// 完成和取消状态不通过此接口发送通知消息
getAPI(vendorOrgCode).DeliveryEndOrder(param["order_id"].(string), param["courier_name"].(string))
return nil
case 100:
// 完成和取消状态不通过此接口发送通知消息
@@ -229,3 +229,11 @@ func (p *PurchaseHandler) GetOrderRider(vendorOrgCode, vendorStoreID string, par
getAPI(vendorOrgCode).ReceiveLogisticInfoForOpenApiPlatform(logisticInfo)
return nil
}
func OrderDeliveryCoordinate(vendorOrgCode string, param map[string]interface{}) error {
operateUser := param["courier_name"].(string)
if operateUser == "" {
operateUser = "system_user"
}
return getAPI(vendorOrgCode).SelfDeliveryUploadCoordinate(utils.Str2Int64(param["order_id"].(string)), param["latitude"].(string), param["longitude"].(string), operateUser)
}