From b8d3580cd1f5ca2774733c06a16fb801b3a1257f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 20 Jun 2022 16:55:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=AC=E4=B8=9C=E8=87=AA?= =?UTF-8?q?=E9=85=8D=E9=80=81=E9=97=A8=E5=BA=97=EF=BC=8C=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E8=BE=BE=E8=BE=BE=E8=BD=AC=E8=87=AA=E9=80=81=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/enterprise_wechat/enterprise_test.go | 3 ++- platformapi/jdapi/order.go | 4 ++++ platformapi/jdapi/order_test.go | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/platformapi/enterprise_wechat/enterprise_test.go b/platformapi/enterprise_wechat/enterprise_test.go index 1bbc61e1..fc1410a5 100644 --- a/platformapi/enterprise_wechat/enterprise_test.go +++ b/platformapi/enterprise_wechat/enterprise_test.go @@ -104,6 +104,7 @@ func TestCreateSession(t *testing.T) { fmt.Println("err======", err) } -func Test1111(t *testing.T) { +func TestGetSuiteTicket(t *testing.T) { + api = New("ww9a156bfa070e1857", "JQsEmSTltHhNgdPIT320YJFphiYmRs-YZa-rCBwplss") // 小程序 } diff --git a/platformapi/jdapi/order.go b/platformapi/jdapi/order.go index 74092961..a1b55a82 100644 --- a/platformapi/jdapi/order.go +++ b/platformapi/jdapi/order.go @@ -99,6 +99,10 @@ const ( ComplaintReason214 = 214 //达达无标准保温箱; ) +const ( + ModifySellerDeliveryNo = "359459" // 京东自配送账号,不需要达达转字配送 +) + type AfsSkuDiscount struct { DetailDiscountType int `json:"detailDiscountType"` DiscountType int `json:"discountType"` diff --git a/platformapi/jdapi/order_test.go b/platformapi/jdapi/order_test.go index 2e9dc403..07b26943 100644 --- a/platformapi/jdapi/order_test.go +++ b/platformapi/jdapi/order_test.go @@ -71,7 +71,7 @@ func TestModifySellerDelivery(t *testing.T) { } func TestOrderSerllerDelivery(t *testing.T) { - result, err := api.OrderSerllerDelivery("2214638129000073", "自配送") + result, err := api.OrderSerllerDelivery("2214740704000086", "自配送") if err != nil { t.Fatal(err.Error()) }