美团cookie取消

This commit is contained in:
suyl
2020-05-31 10:31:54 +08:00
parent cc82fe04be
commit 8df8ae8d87
2 changed files with 0 additions and 29 deletions

View File

@@ -55,11 +55,7 @@ func TestGetCity(t *testing.T) {
}
func TestGetCounty(t *testing.T) {
<<<<<<< HEAD
result, err := api.GetCounty(2815)
=======
result, err := api.GetCounty(2823)
>>>>>>> 6b4ee9a49b7be7d021c71cd098aeef6c9e75e5c2
if err != nil {
t.Fatal(err)
}

View File

@@ -1,15 +1,6 @@
package mtpsapi
import (
<<<<<<< HEAD
=======
"fmt"
"net/http"
"strings"
"git.rosy.net.cn/baseapi"
"git.rosy.net.cn/baseapi/platformapi"
>>>>>>> 6b4ee9a49b7be7d021c71cd098aeef6c9e75e5c2
"git.rosy.net.cn/baseapi/utils"
)
@@ -52,7 +43,6 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{},
}
func (a *API) PagePoiUpdate(outerPoiID, contactName, contactPhone, contactEmail string) (err error) {
<<<<<<< HEAD
// if outerPoiID == "" || contactName == "" || contactPhone == "" || contactEmail == "" {
// return fmt.Errorf("所有参数必须都要有值")
// }
@@ -63,21 +53,6 @@ func (a *API) PagePoiUpdate(outerPoiID, contactName, contactPhone, contactEmail
// "contactEmail": contactEmail,
// }
// _, err = a.AccessAPI2("https://page.peisong.meituan.com/api", "haikuiopen/haikui/open/partner/poi/update", params)
=======
if outerPoiID == "" || contactName == "" || contactPhone == "" || contactEmail == "" {
return fmt.Errorf("所有参数必须都要有值")
}
params := map[string]interface{}{
"outerPoiId": outerPoiID,
"contactName": contactName,
"contactPhone": contactPhone,
"contactEmail": contactEmail,
}
if token, err := a.RefreshToken(); err == nil {
a.token = token
}
_, err = a.AccessAPI2("https://page.peisong.meituan.com/api", "haikuiopen/haikui/open/partner/poi/update", params)
>>>>>>> 6b4ee9a49b7be7d021c71cd098aeef6c9e75e5c2
return err
}