1
This commit is contained in:
@@ -13,7 +13,7 @@ func TestCancelOrder(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderGet(t *testing.T) {
|
||||
result, err := api.OrderGet("4015810058305234572")
|
||||
result, err := api.OrderGet("4054310134272361023")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
@@ -108,7 +108,7 @@ func TestOrderListAll(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderPartRefundGet(t *testing.T) {
|
||||
result, err := api.OrderPartRefundGet("4078740059114489451")
|
||||
result, err := api.OrderPartRefundGet("4054310134272361023")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
|
||||
@@ -189,7 +189,7 @@ func (a *API) OrderStatusAndPsInfoNew(param map[string]interface{}, vendorStoreI
|
||||
request.Param.DistributionCode = JxLogistics2Tiktok(param["logistics_provider_code"].(string))
|
||||
request.Param.RiderLatitude = utils.String2Pointer(param["latitude"].(string))
|
||||
request.Param.RiderLongitude = utils.String2Pointer(param["longitude"].(string))
|
||||
request.Param.DistributionDeliveryId = param["third_carrier_order_id"].(string)
|
||||
request.Param.DistributionDeliveryId = param["order_id"].(string)
|
||||
|
||||
switch param["opcode"].(string) {
|
||||
case TiktokLogisticsStatusCALLRIDER:
|
||||
@@ -204,7 +204,7 @@ func (a *API) OrderStatusAndPsInfoNew(param map[string]interface{}, vendorStoreI
|
||||
logisticsEdit.Param = &order_logisticsEdit_request.OrderLogisticsEditParam{
|
||||
OrderId: param["order_id"].(string),
|
||||
CompanyCode: JxLogistics2Tiktok(param["logistics_provider_code"].(string)),
|
||||
LogisticsCode: param["third_carrier_order_id"].(string),
|
||||
LogisticsCode: param["order_id"].(string),
|
||||
StoreId: utils.Str2Int64(vendorStoreId),
|
||||
}
|
||||
logisticsData, err := logisticsEdit.Execute(a.accessTokenObj)
|
||||
|
||||
Reference in New Issue
Block a user