poi_page.PackagePriceUpdate

This commit is contained in:
gazebo
2019-12-30 16:30:21 +08:00
parent 548225b04b
commit 4d8c4d67d4
6 changed files with 75 additions and 11 deletions

View File

@@ -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) {