1
This commit is contained in:
@@ -26,7 +26,7 @@ func init() {
|
|||||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
|
|
||||||
//商超
|
//商超
|
||||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
|
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nhn4flzSWNneJ4V0UI9DZA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
cookieStr := `
|
cookieStr := `
|
||||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ const (
|
|||||||
MtwmSGTag = "10010000"
|
MtwmSGTag = "10010000"
|
||||||
AuditTypeStore = 1 //审核类型:1-门店入驻;2-门店logo(头图)
|
AuditTypeStore = 1 //审核类型:1-门店入驻;2-门店logo(头图)
|
||||||
AuditTypeStoreLogo = 2
|
AuditTypeStoreLogo = 2
|
||||||
|
MtStoreIsOnlineOffLine = 0 // 0 下线 3审核通过可上线
|
||||||
|
MtStoreIsOnlineOnLine = 1 // 1上线 2上单
|
||||||
)
|
)
|
||||||
|
|
||||||
type PoiCategoryInfo struct {
|
type PoiCategoryInfo struct {
|
||||||
@@ -33,7 +35,7 @@ type PoiInfo struct {
|
|||||||
InvoiceDescription string `json:"invoice_description,omitempt"`
|
InvoiceDescription string `json:"invoice_description,omitempt"`
|
||||||
InvoiceMinPrice int `json:"invoice_min_price,omitempt"`
|
InvoiceMinPrice int `json:"invoice_min_price,omitempt"`
|
||||||
InvoiceSupport int `json:"invoice_support,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"`
|
Latitude float64 `json:"latitude,omitempt"`
|
||||||
LocationID int `json:"location_id,omitempt"`
|
LocationID int `json:"location_id,omitempt"`
|
||||||
Longitude float64 `json:"longitude,omitempt"`
|
Longitude float64 `json:"longitude,omitempt"`
|
||||||
|
|||||||
@@ -23,6 +23,12 @@ func TestPoiGetIDs(t *testing.T) {
|
|||||||
// t.Log(result)
|
// t.Log(result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestPoiGet(t *testing.T) {
|
||||||
|
shop, err := api.PoiGet("18940973")
|
||||||
|
fmt.Println(shop)
|
||||||
|
fmt.Println(err)
|
||||||
|
}
|
||||||
|
|
||||||
func TestPoiMGet(t *testing.T) {
|
func TestPoiMGet(t *testing.T) {
|
||||||
result, err := api.PoiMGet([]string{"18580531"})
|
result, err := api.PoiMGet([]string{"18580531"})
|
||||||
t.Log(utils.Format4Output(result, false))
|
t.Log(utils.Format4Output(result, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user