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