This commit is contained in:
邹宗楠
2026-05-15 09:17:29 +08:00
parent adeb6575cb
commit d7aab91a20
9 changed files with 156 additions and 32 deletions

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_hgR5SlP5pmRApWkUNTRFNQ")
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_gxeIPSwnnHy8O_Ij2CxLdw")
//cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//`

View File

@@ -441,7 +441,7 @@ func TestRetailDelete(t *testing.T) {
// 测试删除门店分类列表
func TestDeleteCat(t *testing.T) {
result, err := api.RetailCatList("31226355")
result, err := api.RetailCatList("20760911")
fmt.Println(result, err)
for _, v := range result {
if v.Children != nil {
@@ -461,6 +461,12 @@ func TestDeleteCat(t *testing.T) {
}
func TestRetailList(t *testing.T) {
data, err := api.RetailList("20760911", 0, 100)
fmt.Println(data)
fmt.Println(err)
}
func TestRetailProductRules(t *testing.T) {
result, err := api.RetailProductRules(200002538)
t.Log(utils.Format4Output(result, false))