3939 * 发起支付入口
4040 *
4141 * @author: egan
42- * @ email egzosn@gmail.com
43- * @ date 2016/11/18 0:25
42+ * email egzosn@gmail.com
43+ * date 2016/11/18 0:25
4444 */
4545@ RestController
4646@ RequestMapping
@@ -58,7 +58,7 @@ public ModelAndView index() {
5858 /**
5959 * 这里模拟账户信息增加
6060 *
61- * @param account
61+ * @param account 支付账户信息
6262 * @return 支付账户信息
6363 */
6464 @ RequestMapping ("add" )
@@ -76,6 +76,7 @@ public Map<String, Object> add(ApyAccount account) {
7676 * 跳到支付页面
7777 * 针对实时支付,即时付款
7878 *
79+ * @param request 请求
7980 * @param payId 账户id
8081 * @param transactionType 交易类型, 这个针对于每一个 支付类型的对应的几种交易方式
8182 * @param bankType 针对刷卡支付,卡的类型,类型值
@@ -114,7 +115,7 @@ public String toPay(HttpServletRequest request, Integer payId, String transactio
114115 /**
115116 * 跳到支付页面
116117 * 针对实时支付,即时付款
117- *
118+ * @param request 请求
118119 * @return 跳到支付页面
119120 */
120121 @ RequestMapping (value = "toWxPay.html" , produces = "text/html;charset=UTF-8" )
@@ -169,7 +170,7 @@ public Map toPay(Integer payId, String openid, BigDecimal price) {
169170 * @return 支付结果
170171 */
171172 @ RequestMapping (value = "microPay" )
172- public Map <String , Object > microPay (Integer payId , String transactionType , BigDecimal price , String authCode ) throws IOException {
173+ public Map <String , Object > microPay (Integer payId , String transactionType , BigDecimal price , String authCode ) {
173174 //获取对应的支付账户操作工具(可根据账户id)
174175 PayResponse payResponse = service .getPayResponse (payId );
175176
@@ -196,7 +197,9 @@ public Map<String, Object> microPay(Integer payId, String transactionType, BigDe
196197 * @param payId 账户id
197198 * @param transactionType 交易类型, 这个针对于每一个 支付类型的对应的几种交易方式
198199 * @param price 金额
200+ *
199201 * @return 二维码图像
202+ * @throws IOException IOException
200203 */
201204 @ RequestMapping (value = "toQrPay.jpg" , produces = "image/jpeg;charset=UTF-8" )
202205 public byte [] toWxQrPay (Integer payId , String transactionType , BigDecimal price ) throws IOException {
@@ -215,7 +218,9 @@ public byte[] toWxQrPay(Integer payId, String transactionType, BigDecimal price)
215218 * @param wxPayId 微信账户id
216219 * @param aliPayId 支付宝id
217220 * @param price 金额
221+ * @param request 请求
218222 * @return 二维码图像
223+ * @throws IOException IOException
219224 */
220225 @ RequestMapping (value = "toWxAliQrPay.jpg" , produces = "image/jpeg;charset=UTF-8" )
221226 public byte [] toWxAliQrPay (Integer wxPayId , Integer aliPayId , BigDecimal price , HttpServletRequest request ) throws IOException {
@@ -243,7 +248,9 @@ public byte[] toWxAliQrPay(Integer wxPayId, Integer aliPayId, BigDecimal price,
243248 * @param wxPayId 微信账户id
244249 * @param aliPayId 支付宝id
245250 * @param price 金额
251+ * @param request 请求
246252 * @return 支付宝与微信平台的判断
253+ * @throws IOException IOException
247254 */
248255 @ RequestMapping (value = "toWxAliPay.html" , produces = "text/html;charset=UTF-8" )
249256 public String toWxAliPay (Integer wxPayId , Integer aliPayId , BigDecimal price , HttpServletRequest request ) throws IOException {
@@ -276,6 +283,7 @@ public String toWxAliPay(Integer wxPayId, Integer aliPayId, BigDecimal price, Ht
276283 *
277284 * @param payId 支付账户id
278285 * @param transactionType 交易类型
286+ * @param price 金额
279287 * @return 支付预订单信息
280288 */
281289 @ RequestMapping ("getOrderInfo" )
@@ -295,9 +303,10 @@ public Map<String, Object> getOrderInfo(Integer payId, String transactionType, B
295303 * <p>
296304 * 方式二,{@link #payBack(HttpServletRequest, Integer)} 是属于简化方式, 试用与简单的业务场景
297305 *
298- * @param request
299- * @param payId
306+ * @param request 请求
307+ * @param payId 账户id
300308 * @return 支付是否成功
309+ * @throws IOException IOException
301310 */
302311 @ RequestMapping (value = "payBackOne{payId}.json" )
303312 public String payBackOne (HttpServletRequest request , @ PathVariable Integer payId ) throws IOException {
@@ -327,11 +336,14 @@ public String payBackOne(HttpServletRequest request, @PathVariable Integer payId
327336 * 支付回调地址
328337 * 方式二
329338 *
330- * @param request
331- * @return 拦截器相关增加, 详情查看{@link com.egzosn.pay.common.api.PayService#addPayMessageInterceptor(PayMessageInterceptor)}
332- * <p></p>
333- * 业务处理在对应的PayMessageHandler里面处理,在哪里设置PayMessageHandler,详情查看{@link com.egzosn.pay.common.api.PayService#setPayMessageHandler(com.egzosn.pay.common.api.PayMessageHandler)}
339+ * @param request 请求
340+ * @param payId 账户id
341+ * @return 支付是否成功
342+ * @throws IOException IOException
343+ * 拦截器相关增加, 详情查看{@link com.egzosn.pay.common.api.PayService#addPayMessageInterceptor(PayMessageInterceptor)}
334344 * <p>
345+ * 业务处理在对应的PayMessageHandler里面处理,在哪里设置PayMessageHandler,详情查看{@link com.egzosn.pay.common.api.PayService#setPayMessageHandler(com.egzosn.pay.common.api.PayMessageHandler)}
346+ * </p>
335347 * 如果未设置 {@link com.egzosn.pay.common.api.PayMessageHandler} 那么会使用默认的 {@link com.egzosn.pay.common.api.DefaultPayMessageHandler}
336348 */
337349 @ RequestMapping (value = "payBack{payId}.json" )
@@ -381,7 +393,7 @@ public Map<String, Object> close(QueryOrder order) {
381393
382394 /**
383395 * 申请退款接口
384- *
396+ * @param payId 账户id
385397 * @param order 订单的请求体
386398 * @return 返回支付方申请退款后的结果
387399 */
@@ -435,7 +447,7 @@ public Map<String, Object> secondaryInterface(QueryOrder order) {
435447
436448 /**
437449 * 转账
438- *
450+ * @param payId 账户id
439451 * @param order 转账订单
440452 * @return 对应的转账结果
441453 */
@@ -447,7 +459,7 @@ public Map<String, Object> transfer(int payId, TransferOrder order) {
447459
448460 /**
449461 * 转账查询
450- *
462+ * @param payId 账户id
451463 * @param outNo 商户转账订单号
452464 * @param tradeNo 支付平台转账订单号
453465 * @return 对应的转账订单
0 commit comments