poi_page.PackagePriceUpdate
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
const (
|
||||
userURL = "http://i.waimai.meituan.com"
|
||||
orderURL = "https://shangoue.meituan.com/v2"
|
||||
orderURL = "https://shangoue.meituan.com"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -38,11 +38,21 @@ type ListShopItem struct {
|
||||
WmPoiScore int `json:"wmPoiScore"`
|
||||
}
|
||||
|
||||
func getRootURL(subURL string) (rootURL string) {
|
||||
if strings.Index(subURL, "order/receive/processed/r/distribute") >= 0 {
|
||||
return orderURL
|
||||
var (
|
||||
actionHostMap = map[string]string{
|
||||
"v2/order/receive/processed/w/distribute/tipAmount/v2": orderURL,
|
||||
"v2/order/receive/processed/r/distribute/list/v2": orderURL,
|
||||
"reuse/sc/product/packageprice/w/update": orderURL,
|
||||
"reuse/sc/product/packageprice/r/get": orderURL,
|
||||
}
|
||||
return userURL
|
||||
)
|
||||
|
||||
func getRootURL(subURL string) (rootURL string) {
|
||||
rootURL = actionHostMap[subURL]
|
||||
if rootURL == "" {
|
||||
rootURL = userURL
|
||||
}
|
||||
return rootURL
|
||||
}
|
||||
|
||||
func (a *API) AccessUserPage2(subURL string, params map[string]interface{}, isPost bool) (retVal map[string]interface{}, err error) {
|
||||
|
||||
Reference in New Issue
Block a user