mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-04 20:57:47 +08:00
🆕 #2106 支付通知解密数据对象增加“基础支付支付者信息”字段
This commit is contained in:
parent
dae6b15fa4
commit
a596228a8d
@ -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();
|
||||
}
|
||||
|
@ -195,11 +195,22 @@ public class PartnerTransactionsResult implements Serializable {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 字段名:+支付者
|
||||
* 字段名:支付者信息
|
||||
* 变量名:payer
|
||||
* 是否必填:是
|
||||
* 类型:object
|
||||
* 描述:基础支付支付者信息
|
||||
* </pre>
|
||||
*/
|
||||
private CombinePayerInfo payer;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* 字段名:支付者
|
||||
* 变量名:combine_payer_info
|
||||
* 是否必填:否
|
||||
* 类型:object
|
||||
* 描述:示例值:见请求示例
|
||||
* 描述:合单支付支付者信息,示例值:见请求示例
|
||||
* </pre>
|
||||
*/
|
||||
@SerializedName(value = "combine_payer_info")
|
||||
|
Loading…
Reference in New Issue
Block a user