+ APICookie
This commit is contained in:
17
platformapi/mtpsapi/shop_page.go
Normal file
17
platformapi/mtpsapi/shop_page.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package mtpsapi
|
||||
|
||||
import "fmt"
|
||||
|
||||
func (a *API) PagePoiUpdate(outerPoiID, contactName, contactPhone, contactEmail string) (err error) {
|
||||
if outerPoiID == "" || contactName == "" || contactPhone == "" || contactEmail == "" {
|
||||
return fmt.Errorf("所有参数必须都要有值")
|
||||
}
|
||||
params := map[string]interface{}{
|
||||
"outerPoiId": outerPoiID,
|
||||
"contactName": contactName,
|
||||
"contactPhone": contactPhone,
|
||||
"contactEmail": contactEmail,
|
||||
}
|
||||
_, err = a.AccessAPI2("https://peisong.meituan.com/api", "haikuiopen/haikui/open/partner/poi/update", params)
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user