File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/result Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,32 @@ public class WxPayMicropayResult extends BaseWxPayResult implements Serializable
48
48
**/
49
49
@ XStreamAlias ("is_subscribe" )
50
50
private String isSubscribe ;
51
+
52
+ /**
53
+ * <pre>
54
+ * 用户子标识.
55
+ * sub_openid
56
+ * 否
57
+ * String(128)
58
+ * Y
59
+ * 子商户appid下用户唯一标识,如需返回则请求时需要传sub_appid
60
+ * </pre>
61
+ **/
62
+ @ XStreamAlias ("sub_openid" )
63
+ private String subOpenid ;
64
+
65
+ /**
66
+ * <pre>
67
+ * 是否关注子公众账号.
68
+ * sub_is_subscribe
69
+ * 否
70
+ * String(1)
71
+ * Y
72
+ * 用户是否关注子公众账号,仅在公众账号类型支付有效,取值范围:Y或N;Y-关注;N-未关注
73
+ * </pre>
74
+ **/
75
+ @ XStreamAlias ("sub_is_subscribe" )
76
+ private String subIsSubscribe ;
51
77
52
78
/**
53
79
* <pre>
@@ -227,6 +253,8 @@ public class WxPayMicropayResult extends BaseWxPayResult implements Serializable
227
253
protected void loadXml (Document d ) {
228
254
openid = readXmlString (d , "openid" );
229
255
isSubscribe = readXmlString (d , "is_subscribe" );
256
+ subOpenid = readXmlString (d , "sub_openid" );
257
+ subIsSubscribe = readXmlString (d , "sub_is_subscribe" );
230
258
tradeType = readXmlString (d , "trade_type" );
231
259
bankType = readXmlString (d , "bank_type" );
232
260
feeType = readXmlString (d , "fee_type" );
You can’t perform that action at this time.
0 commit comments