This commit is contained in:
gazebo
2019-09-25 22:55:21 +08:00
parent 37de9f6f7e
commit d93cc09730

View File

@@ -154,6 +154,7 @@ func (a *API) PoiShipTimeUpdate(poiCode, shippingTime string) (err error) {
// 美团要求必须是jpg|jpeg图片格式且imgName必须以jpg或jpeg结尾
// 此接口虽然要求poiCode参数但经过测试发现上传的图片可以跨门店使用
// imgName好像不支持中文否则会报签名错
func (a *API) ImageUpload(poiCode, imgName string, imgData []byte) (imgID string, err error) {
result, err := a.AccessAPI("image/upload", false, map[string]interface{}{
KeyAppPoiCode: poiCode,