1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user