mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	🆕 #2106 支付通知解密数据对象增加“基础支付支付者信息”字段
This commit is contained in:
		| @ -40,10 +40,13 @@ public interface WxCpTpMediaService { | ||||
|      * | ||||
|      * @param mediaType 媒体类型 | ||||
|      * @param file      文件对象 | ||||
|      * @param corpId 授权企业的corpid | ||||
|      * @see #upload(String, String, InputStream, String) | ||||
|      * @throws WxErrorException 异常信息 | ||||
|      */ | ||||
|     WxMediaUploadResult upload(String mediaType, File file, String corpId) throws WxErrorException; | ||||
|  | ||||
|  | ||||
|     /** | ||||
|      * <pre> | ||||
|      * 上传图片. | ||||
| @ -52,9 +55,10 @@ public interface WxCpTpMediaService { | ||||
|      * 每个企业每天最多可上传100张图片 | ||||
|      * 接口url格式:https://qyapi.weixin.qq.com/cgi-bin/media/uploadimg?access_token=ACCESS_TOKEN | ||||
|      * </pre> | ||||
|      * | ||||
|      * @param file 上传的文件对象 | ||||
|      * @param corpId 授权企业的corpid | ||||
|      * @return 返回图片url | ||||
|      * @throws WxErrorException 异常信息 | ||||
|      */ | ||||
|     String uploadImg(File file, String corpId) throws WxErrorException; | ||||
| } | ||||
|  | ||||
| @ -43,7 +43,7 @@ public class WxCpTpMediaServiceImpl implements WxCpTpMediaService { | ||||
|     @Override | ||||
|     public String uploadImg(File file, String corpId) throws WxErrorException { | ||||
|         String url = mainService.getWxCpTpConfigStorage().getApiUrl(IMG_UPLOAD); | ||||
|         url += "&access_token=" + mainService.getWxCpTpConfigStorage().getAccessToken(corpId); | ||||
|         url += "?access_token=" + mainService.getWxCpTpConfigStorage().getAccessToken(corpId); | ||||
|         return this.mainService.execute(MediaUploadRequestExecutor.create(this.mainService.getRequestHttp()), url, file) | ||||
|                 .getUrl(); | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 mrxiao
					mrxiao