@@ -116,13 +116,19 @@ public abstract class BaseWxPayResult implements Serializable {
116116 * 将单位分转换成单位圆.
117117 *
118118 * @param fen 将要被转换为元的分的数值
119+ * @return the string
119120 */
120121 public static String fenToYuan (Integer fen ) {
121122 return BigDecimal .valueOf (Double .valueOf (fen ) / 100 ).setScale (2 , BigDecimal .ROUND_HALF_UP ).toPlainString ();
122123 }
123124
124125 /**
125126 * 从xml字符串创建bean对象.
127+ *
128+ * @param <T> the type parameter
129+ * @param xmlString the xml string
130+ * @param clz the clz
131+ * @return the t
126132 */
127133 public static <T extends BaseWxPayResult > T fromXML (String xmlString , Class <T > clz ) {
128134 XStream xstream = XStreamInitializer .getInstance ();
@@ -132,6 +138,11 @@ public static <T extends BaseWxPayResult> T fromXML(String xmlString, Class<T> c
132138 return result ;
133139 }
134140
141+ /**
142+ * Gets logger.
143+ *
144+ * @return the logger
145+ */
135146 protected Logger getLogger () {
136147 return LoggerFactory .getLogger (this .getClass ());
137148 }
@@ -143,6 +154,8 @@ public String toString() {
143154
144155 /**
145156 * 将bean通过保存的xml字符串转换成map.
157+ *
158+ * @return the map
146159 */
147160 public Map <String , String > toMap () {
148161 if (StringUtils .isBlank (this .xmlString )) {
@@ -189,6 +202,9 @@ private Document getXmlDoc() {
189202
190203 /**
191204 * 获取xml中元素的值.
205+ *
206+ * @param path the path
207+ * @return the xml value
192208 */
193209 String getXmlValue (String ... path ) {
194210 Document doc = this .getXmlDoc ();
@@ -206,6 +222,9 @@ String getXmlValue(String... path) {
206222
207223 /**
208224 * 获取xml中元素的值,作为int值返回.
225+ *
226+ * @param path the path
227+ * @return the xml value as int
209228 */
210229 Integer getXmlValueAsInt (String ... path ) {
211230 String result = this .getXmlValue (path );
@@ -219,8 +238,10 @@ Integer getXmlValueAsInt(String... path) {
219238 /**
220239 * 校验返回结果签名.
221240 *
241+ * @param wxPayService the wx pay service
222242 * @param signType 签名类型
223243 * @param checkSuccess 是否同时检查结果是否成功
244+ * @throws WxPayException the wx pay exception
224245 */
225246 public void checkResult (WxPayService wxPayService , String signType , boolean checkSuccess ) throws WxPayException {
226247 //校验返回结果签名
0 commit comments