This commit is contained in:
苏尹岚
2021-02-18 15:46:06 +08:00
parent 5dd4dbbd1e
commit 04515ac205
3 changed files with 12 additions and 6 deletions

View File

@@ -22,10 +22,10 @@ func init() {
// api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "") // api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园 // 果园
// api = New("4123", "df2c88338b85f830cebce2a9eab56628", "") api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超 //商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_gYtTGPVDP6pTDLECwp1BFA") //token_nH_IlcWQKAkZBqklwItNRw // api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_gYtTGPVDP6pTDLECwp1BFA") //token_nH_IlcWQKAkZBqklwItNRw
cookieStr := ` cookieStr := `
acctId=62884810; token=0_0_vJux6rcmm0XIzoI885_aew-gnfofUw9SR-a-QkLw*; brandId=-1; wmPoiId=-1; acctId=62884810; token=0_0_vJux6rcmm0XIzoI885_aew-gnfofUw9SR-a-QkLw*; brandId=-1; wmPoiId=-1;
` `
@@ -57,7 +57,7 @@ func TestGetAccessToken(t *testing.T) {
} }
func TestGetAccessToken2(t *testing.T) { func TestGetAccessToken2(t *testing.T) {
result, err := api.GetAccessToken2("10874383") result, err := api.GetAccessToken("code_nsX2gj8sQFcB0bYr0iVJtg")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }

View File

@@ -28,7 +28,7 @@ func TestOrderGetOrderDetail(t *testing.T) {
} }
func TestOrderGetOrderDetail2(t *testing.T) { func TestOrderGetOrderDetail2(t *testing.T) {
result, err := api.OrderGetOrderDetail2(93475541926981203, false) result, err := api.OrderGetOrderDetail2(98467110652448221, false)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }

View File

@@ -10,6 +10,12 @@ import (
"git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/baseapi/utils"
) )
const (
MtwmSCTag = "13030000"
MtwmC4Tag = "11010000"
MtwmSGTag = "10010000"
)
type PoiCategoryInfo struct { type PoiCategoryInfo struct {
ID int `json:"id"` ID int `json:"id"`
Name string `json:"name"` Name string `json:"name"`
@@ -204,7 +210,7 @@ type MultiPoiBasicInfo struct {
Address string `json:"address"` Address string `json:"address"`
Longitude string `json:"longitude"` Longitude string `json:"longitude"`
Latitude string `json:"latitude"` Latitude string `json:"latitude"`
FirstTag int `json:"first_tag"` FirstTag string `json:"first_tag"`
CallCenter string `json:"call_center"` CallCenter string `json:"call_center"`
ContactName string `json:"contact_name"` ContactName string `json:"contact_name"`
ContactPhone string `json:"contact_phone"` ContactPhone string `json:"contact_phone"`
@@ -234,7 +240,7 @@ type MultiPoiCertInfo struct {
type MultiPoiShippingInfo struct { type MultiPoiShippingInfo struct {
ShippingType int `json:"shipping_type"` ShippingType int `json:"shipping_type"`
MinPrice float64 `json:"min_price"` MinPrice float64 `json:"min_price"`
ShippingFee string `json:"shipping_fee"` ShippingFee float64 `json:"shipping_fee"`
} }
//https://open-shangou.meituan.com/home/docDetail/530 //https://open-shangou.meituan.com/home/docDetail/530