mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🆕 #1639 微信支付增加v3图片上传接口
1. 实现v3上传图片功能 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/tool/chapter3_1.shtml 2. 将接口获取到的证书保存到PayConfig中,v3接口中部分字段是敏感数据,在对这些数据加密时会用到
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.github.binarywang.wxpay.bean.media;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
|
||||
|
||||
/**
|
||||
* 媒体文件上传返回结果对象
|
||||
* @author zhouyongshen
|
||||
*/
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public class ImageUploadResult {
|
||||
|
||||
public static ImageUploadResult fromJson(String json) {
|
||||
return WxGsonBuilder.create().fromJson(json, ImageUploadResult.class);
|
||||
}
|
||||
/**
|
||||
* 媒体文件标识 Id
|
||||
*
|
||||
* 微信返回的媒体文件标识Id。
|
||||
* 示例值:6uqyGjGrCf2GtyXP8bxrbuH9-aAoTjH-rKeSl3Lf4_So6kdkQu4w8BYVP3bzLtvR38lxt4PjtCDXsQpzqge_hQEovHzOhsLleGFQVRF-U_0
|
||||
*
|
||||
*/
|
||||
@SerializedName("media_id")
|
||||
private String mediaId;
|
||||
}
|
||||
Reference in New Issue
Block a user