File tree Expand file tree Collapse file tree
weixin-java-mp/src/main/java/me/chanjar/weixin/mp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,6 @@ public interface WxMpConfigStorage {
8989 /**
9090 * 微信支付异步回掉地址,通知url必须为直接可访问的url,不能携带参数。
9191 *
92- * @return
9392 * @since 2.5.0
9493 */
9594 String getNotifyURL ();
@@ -100,7 +99,6 @@ public interface WxMpConfigStorage {
10099 * JSAPI--公众号支付、NATIVE--原生扫码支付、APP--app支付
101100 * </pre>
102101 *
103- * @return
104102 * @since 2.5.0
105103 */
106104 String getTradeType ();
Original file line number Diff line number Diff line change 11package me .chanjar .weixin .mp .bean .pay .request ;
22
3- import java .math .BigDecimal ;
4-
53import com .thoughtworks .xstream .annotations .XStreamAlias ;
64import me .chanjar .weixin .common .util .ToStringUtils ;
75
6+ import java .math .BigDecimal ;
7+
88/**
99 * <pre>
1010 * Created by Binary Wang on 2016-10-24.
@@ -75,7 +75,7 @@ public String getAppid() {
7575
7676 /**
7777 * 如果配置中已经设置,可以不设置值
78- * @param appid
78+ * @param appid 微信公众号appid
7979 */
8080 public void setAppid (String appid ) {
8181 this .appid = appid ;
@@ -87,7 +87,7 @@ public String getMchId() {
8787
8888 /**
8989 * 如果配置中已经设置,可以不设置值
90- * @param mchId
90+ * @param mchId 微信商户号
9191 */
9292 public void setMchId (String mchId ) {
9393 this .mchId = mchId ;
@@ -99,7 +99,7 @@ public String getNonceStr() {
9999
100100 /**
101101 * 默认采用时间戳为随机字符串,可以不设置
102- * @param nonceStr
102+ * @param nonceStr 随机字符串
103103 */
104104 public void setNonceStr (String nonceStr ) {
105105 this .nonceStr = nonceStr ;
@@ -112,12 +112,11 @@ public String getSign() {
112112 public void setSign (String sign ) {
113113 this .sign = sign ;
114114 }
115-
115+
116116 /**
117117 * 将单位为元转换为单位为分
118118 *
119- * @param yuan
120- * @return
119+ * @param yuan 将要转换的元的数值字符串
121120 */
122121 public static Integer yuanToFee (String yuan ) {
123122 return new BigDecimal (yuan ).setScale (2 , BigDecimal .ROUND_HALF_UP ).multiply (new BigDecimal (100 )).intValue ();
Original file line number Diff line number Diff line change 11package me .chanjar .weixin .mp .bean .pay .result ;
22
3- import java .math .BigDecimal ;
4- import java .util .Map ;
5-
63import com .thoughtworks .xstream .annotations .XStreamAlias ;
7-
84import me .chanjar .weixin .common .util .BeanUtils ;
95import me .chanjar .weixin .common .util .ToStringUtils ;
106
7+ import java .math .BigDecimal ;
8+ import java .util .Map ;
9+
1110/**
1211 * <pre>
1312 * 微信支付结果共用属性类
@@ -146,16 +145,15 @@ public String getSign() {
146145 public void setSign (String sign ) {
147146 this .sign = sign ;
148147 }
149-
148+
150149 /**
151150 * 将单位分转换成单位圆
152- * @param fee
153- * @return
151+ * @param fee 将要被转换为元的分的数值
154152 */
155153 public static String feeToYuan (Integer fee ) {
156154 return new BigDecimal (Double .valueOf (fee ) / 100 ).setScale (2 , BigDecimal .ROUND_HALF_UP ).toPlainString ();
157155 }
158-
156+
159157 public Map <String ,String > toMap (){
160158 return BeanUtils .xmlBean2Map (this );
161159 }
You can’t perform that action at this time.
0 commit comments