File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change 1
1
package com .github .binarywang .wxpay .bean .notify ;
2
2
3
- import java .util .List ;
4
- import java .util .Map ;
5
-
6
3
import com .github .binarywang .wxpay .bean .result .BaseWxPayResult ;
7
4
import com .github .binarywang .wxpay .constant .WxPayConstants ;
8
5
import com .github .binarywang .wxpay .converter .WxPayOrderNotifyResultConverter ;
17
14
import me .chanjar .weixin .common .util .json .WxGsonBuilder ;
18
15
import me .chanjar .weixin .common .util .xml .XStreamInitializer ;
19
16
17
+ import java .util .List ;
18
+ import java .util .Map ;
19
+
20
20
/**
21
- * 支付结果通用通知 ,文档见:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7
21
+ * 支付结果通知.
22
+ * 文档见:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7&index=8
23
+ * https://pay.weixin.qq.com/wiki/doc/api/external/native.php?chapter=9_7
22
24
*
23
25
* @author aimilin6688
24
26
* @since 2.5.0
@@ -285,17 +287,29 @@ public class WxPayOrderNotifyResult extends BaseWxPayResult {
285
287
*/
286
288
@ XStreamAlias ("version" )
287
289
private String version ;
288
-
290
+
291
+ /**
292
+ * <pre>
293
+ * 字段名:汇率.
294
+ * 变量名:rate_value
295
+ * 类型:String(16)
296
+ * 示例值:650000000
297
+ * 标价币种与支付币种的兑换比例乘以10的8次方即为此值,例如美元兑换人民币的比例为6.5,则rate_value=650000000
298
+ * </pre>
299
+ */
300
+ @ XStreamAlias ("rate_value" )
301
+ private String rateValue ;
302
+
289
303
@ Override
290
304
public void checkResult (WxPayService wxPayService , String signType , boolean checkSuccess ) throws WxPayException {
291
305
//防止伪造成功通知
292
306
if (WxPayConstants .ResultCode .SUCCESS .equals (getReturnCode ()) && getSign () == null ) {
293
307
throw new WxPayException ("伪造的通知!" );
294
308
}
295
-
309
+
296
310
super .checkResult (wxPayService , signType , checkSuccess );
297
311
}
298
-
312
+
299
313
/**
300
314
* From xml wx pay order notify result.
301
315
*
You can’t perform that action at this time.
0 commit comments