This commit is contained in:
邹宗楠
2026-03-30 09:10:47 +08:00
parent 66064f8de2
commit 00044322fa
8 changed files with 13 additions and 13 deletions

View File

@@ -108,7 +108,7 @@ func TestRetailDiscountBatchSave(t *testing.T) {
}
func TestRetailDiscountList(t *testing.T) { //56 1001
result, err := api.RetailDiscountList("9846711", 1001)
result, err := api.RetailDiscountList("32235182", 56)
if err != nil {
t.Fatal(err)
}

View File

@@ -19,13 +19,13 @@ func init() {
baseapi.Init(sugarLogger)
// 菜市
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_vf8fP3ELY3RQleIw-oxJNg")
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_oz-C3lOxJJ1EuBW1X31LqA")
//cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//`

View File

@@ -144,7 +144,7 @@ func TestOrderGetRiderInfoPhoneNumber(t *testing.T) {
}
func TestGetOrderRefundDetail(t *testing.T) {
result, err := api.GetOrderRefundDetail(5301969382988477903, 0)
result, err := api.GetOrderRefundDetail(3302052631611300348, 0)
if err != nil {
t.Fatal(err)
}

View File

@@ -405,7 +405,7 @@ func TestRetailRecommendTag(t *testing.T) {
// 删除商品
func TestRetailDelete(t *testing.T) {
poiCode := "31226355"
poiCode := "32219557"
i := 0
count := 0

View File

@@ -9,7 +9,7 @@ import (
)
//(抖)京西菜市
//var token1 = `{"access_token":"81qzlgabmw1j7t4nq1hehos0000yhugi-11","expires_in":1774781291,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市","refresh_token":"s0a144yh8m1j7t4nq1hehos0000yhugi-12","authority_id":""}`
var token1 = `{"access_token":"81qzlgabmw1j7t4nq1hehos0000yhugi-11","expires_in":1774781291,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市","refresh_token":"s0a144yh8m1j7t4nq1hehos0000yhugi-12","authority_id":""}`
//(抖)美好菜市 授权已被关闭,请重新打开授权开关
//var token1 = `{"access_token":"45f191d2-3917-4f49-a538-da83733c1d70","expires_in":1723882502,"scope":"SCOPE","shop_id":68032645,"shop_name":"京西果园","refresh_token":"a372e76b-6470-4d9f-a375-3cb53e6e32ab","authority_id":""}`
@@ -27,7 +27,7 @@ import (
//var token1 = `{"access_token":"fb41e4d5-c92f-4b07-956f-46c63d0547be","expires_in":1692275028,"scope":"SCOPE","shop_id":92037439,"shop_name":"京西花园","refresh_token":"5fa3efc3-d3c4-410a-baaa-0fb23d408ccf","authority_id":""}`
// 测试门店
var token1 = `{"access_token":"syriovzwwq1j7t4nq1hehos0004b2xdw-11","expires_in":1774425349,"scope":"SCOPE","shop_id":260477060,"shop_name":"开放平台测试专用店4","refresh_token":"8u762h27341j7t4nq1hehos0004b2xdw-12","authority_id":""}`
//var token1 = `{"access_token":"syriovzwwq1j7t4nq1hehos0004b2xdw-11","expires_in":1774425349,"scope":"SCOPE","shop_id":260477060,"shop_name":"开放平台测试专用店4","refresh_token":"8u762h27341j7t4nq1hehos0004b2xdw-12","authority_id":""}`
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token1)

View File

@@ -187,7 +187,7 @@ func TestCreateStoreCommodity(t *testing.T) {
}
func TestGetCatePropertyV2(t *testing.T) {
categoryList, err := a.GetCatePropertyV2(1000002049)
categoryList, err := a.GetCatePropertyV2(1000009871)
if err != nil {
fmt.Println(err)
}

View File

@@ -52,15 +52,15 @@ func TestSNSSendGoodsOrder(t *testing.T) {
OutTradeNo string `json:"out_trade_no"`
}{
OrderNumberType: 2,
TransactionId: "4200003055202603242074503838",
TransactionId: "4200003088202603279879861111",
},
LogisticsType: 1,
DeliveryMode: 1,
IsAllDelivered: false,
ShippingList: append([]ShippingList{}, ShippingList{
TrackingNo: "88512032279168",
TrackingNo: "88512338325663",
ExpressCompany: "YD",
ItemDesc: "背心袋测试",
ItemDesc: "背心袋",
Contact: struct {
ConsignorContact string `json:"consignor_contact"`
ReceiverContact string `json:"receiver_contact"`
@@ -70,7 +70,7 @@ func TestSNSSendGoodsOrder(t *testing.T) {
Payer: struct {
Openid string `json:"openid"`
}{
Openid: "ojWb10P-E520p3WZSClXclSBR_20",
Openid: "ojWb10NolTtLz3w3YRxYq92NIO2U",
},
}

View File

@@ -28,5 +28,5 @@ func init() {
api = New("wx4b5930c13f8b1170", "2a57228a716ce991a52739f0ff41111d")
//api = New("wx2bb99eb5d2c9b82c", "6bbbed1443cc062c20a015a64c07a531")
//api.CBSetToken("79_3x4gI4IFn9JKJd0EouSLe2HYFFoscRntAYCTZec4VLBlgivhOR0D2vp0mF0u6T-DmzbnAXotpTs_5Yp5Knxak7bfaMDzoaFMZM14r5n4CKpNTOaLH4PSyap2TnALTKgAHASAR")
api.CBSetToken("102_563eM-1LcfFzyjU00n-W036LZg1IHVzSrIi0FEj4ylD915aYUpB9nOJBe21UKFBhHHs_xzoyZXvcO_HOQ1-De-F9-W3H1CHyHFQe8SiCORnMlSnQaQkIPXTiMpERZWcAEAUCZ")
//api.CBSetToken("102_563eM-1LcfFzyjU00n-W036LZg1IHVzSrIi0FEj4ylD915aYUpB9nOJBe21UKFBhHHs_xzoyZXvcO_HOQ1-De-F9-W3H1CHyHFQe8SiCORnMlSnQaQkIPXTiMpERZWcAEAUCZ")
}