This commit is contained in:
richboo111
2023-09-08 17:11:38 +08:00
parent 48cb5b9d42
commit 419df0dc52
2 changed files with 27 additions and 20 deletions

View File

@@ -64,21 +64,26 @@ type RiderRecall struct {
// OrderComplete 订单完成回调 // OrderComplete 订单完成回调
type OrderComplete struct { type OrderComplete struct {
OperatorName string `json:"operator_name"` //配送员姓名 OrderID string `json:"order_id"`
//OperatorPhone string `json:"operator_phone"` //配送员电话 ShopId float64 `json:"shop_id"` // 店铺ID
OrderStatus float64 `json:"order_status"` //17配送员点击完成 OutOrderID string `json:"out_order_id"`
PushTime int `json:"push_time"` //完成时间 OrderStatus float64 `json:"order_status"` //17配送员点击完成
ReceiptType float64 `json:"receipt_type"` //1:正常签收, 2:商家退回签收 StatusDesc string `json:"status_desc"` //状态描述
RiderLng string `json:"rider_lng"` //配送员位置经度 RiderName string `json:"rider_name"`
RiderLat string `json:"rider_lat"` //配送员位置纬度 RiderPhone string `json:"rider_phone"`
SFOrderID string `json:"sf_order_id"` //顺丰订单ID PushTime int `json:"push_time"` //完成时间
SFUCode string `json:"sf_ucode"` TotalPrice float64 `json:"total_price"`
ShopId float64 `json:"shop_id"` // 店铺ID DeliveryDistanceMeter float64 `json:"delivery_distance_meter"`
ShopOrderID string `json:"shop_order_id"` //商家订单ID WeightGram float64 `json:"weight_gram"`
UrlIndex string `json:"url_index"` //回调url前缀 StartTime int `json:"start_time"`
StatusDesc string `json:"status_desc"` //状态描述 ExpectTime int `json:"expect_time"`
PickUpPic string `json:"pickup_pic"` //只有在店铺打开妥投照片回调开关且有妥投照片时才有此字段 TotalPayMoney float64 `json:"total_pay_money"`
RealPayMoney float64 `json:"real_pay_money"`
CouponsTotalFee float64 `json:"coupons_total_fee"`
SettlementType float64 `json:"settlement_type"`
PckUpCode float64 `json:"pck_up_code"`
CompleteCode float64 `json:"complete_code"`
OverflowFee float64 `json:"overflow_fee"`
} }
// SFCancel 顺丰原因订单取消回调 // SFCancel 顺丰原因订单取消回调

View File

@@ -7,8 +7,8 @@ import (
"testing" "testing"
) )
//var api = New(AppID, AppKey)//测试 var api = New(AppID, AppKey) //测试
var api = New(AppID2, AppKey2) //正式 //var api = New(AppID2, AppKey2) //正式
const ( const (
//正式环境 //正式环境
@@ -64,11 +64,13 @@ func TestCreateOrder(t *testing.T) {
param := &CreateOrderReq{ param := &CreateOrderReq{
DevId: AppID, DevId: AppID,
ShopId: TestSFStoreID, ShopId: TestSFStoreID,
ShopOrderId: "20230525Test", ShopType: 1,
ShopOrderId: "20230908Test",
OrderSequence: "测试", OrderSequence: "测试",
OrderSource: OrderSourceELM, OrderSource: OrderSourceELM,
OrderTime: 1684997166, OrderTime: 1694163550,
PushTime: 1684997166, LbsType: LbsTypeGD,
PushTime: 1694163550,
Version: 19, Version: 19,
ReturnFlag: 511, ReturnFlag: 511,
Receive: &ReceiveAddress{ Receive: &ReceiveAddress{