This commit is contained in:
邹宗楠
2023-12-20 17:07:22 +08:00
parent 305c5f4f10
commit b53a15a9b0
3 changed files with 15 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ func init() {
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nhn4flzSWNneJ4V0UI9DZA") //token_n4TwqCntWWuvQwAawzxC0w
cookieStr := `
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
`

View File

@@ -12,11 +12,13 @@ import (
)
const (
MtwmSCTag = "13030000"
MtwmC4Tag = "11010000"
MtwmSGTag = "10010000"
AuditTypeStore = 1 //审核类型1-门店入驻2-门店logo(头图)
AuditTypeStoreLogo = 2
MtwmSCTag = "13030000"
MtwmC4Tag = "11010000"
MtwmSGTag = "10010000"
AuditTypeStore = 1 //审核类型1-门店入驻2-门店logo(头图)
AuditTypeStoreLogo = 2
MtStoreIsOnlineOffLine = 0 // 0 下线 3审核通过可上线
MtStoreIsOnlineOnLine = 1 // 1上线 2上单
)
type PoiCategoryInfo struct {
@@ -33,7 +35,7 @@ type PoiInfo struct {
InvoiceDescription string `json:"invoice_description,omitempt"`
InvoiceMinPrice int `json:"invoice_min_price,omitempt"`
InvoiceSupport int `json:"invoice_support,omitempt"`
IsOnline int `json:"is_online,omitempt"`
IsOnline int `json:"is_online,omitempt"` // 0-下线1-上线2-上单中3-审核通过可上线。
Latitude float64 `json:"latitude,omitempt"`
LocationID int `json:"location_id,omitempt"`
Longitude float64 `json:"longitude,omitempt"`

View File

@@ -23,6 +23,12 @@ func TestPoiGetIDs(t *testing.T) {
// t.Log(result)
}
func TestPoiGet(t *testing.T) {
shop, err := api.PoiGet("18940973")
fmt.Println(shop)
fmt.Println(err)
}
func TestPoiMGet(t *testing.T) {
result, err := api.PoiMGet([]string{"18580531"})
t.Log(utils.Format4Output(result, false))