🆕 #2106 支付通知解密数据对象增加“基础支付支付者信息”字段

This commit is contained in:
mrxiao 2021-05-14 10:59:25 +08:00 committed by GitHub
parent dae6b15fa4
commit a596228a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 4 deletions

View File

@ -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;
}

View File

@ -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();
}

View File

@ -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")