public interface MerchantMediaService
微信支付通用媒体接口.
限定符和类型 | 方法和说明 |
---|---|
ImageUploadResult |
imageUploadV3(File imageFile)
通用接口-图片上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/upload
|
ImageUploadResult |
imageUploadV3(InputStream inputStream,
String fileName)
通用接口-图片上传API
文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml
接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/upload
|
ImageUploadResult imageUploadV3(File imageFile) throws WxPayException, IOException
通用接口-图片上传API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml 接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/upload
imageFile
- 需要上传的图片文件WxPayException
- the wx pay exceptionIOException
ImageUploadResult imageUploadV3(InputStream inputStream, String fileName) throws WxPayException, IOException
通用接口-图片上传API 文档详见: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml 接口链接:https://api.mch.weixin.qq.com/v3/merchant/media/upload
inputStream
- 需要上传的图片文件流fileName
- 需要上传的图片文件名WxPayException
- the wx pay exceptionIOException
Copyright © 2023. All rights reserved.