移除过时的退款方法

app接口案例
This commit is contained in:
egzosn
2020-05-25 00:02:27 +08:00
parent 550099ea29
commit 674e2b81f0
2 changed files with 3 additions and 3 deletions

View File

@@ -167,14 +167,14 @@ public class PayController {
* @param price 金额
* @return 支付预订单信息
*/
@RequestMapping("getOrderInfo")
@RequestMapping("app")
public Map<String, Object> getOrderInfo(Integer payId, String transactionType, BigDecimal price) {
//获取对应的支付账户操作工具可根据账户id
PayResponse payResponse = service.getPayResponse(payId);
Map<String, Object> data = new HashMap<>();
data.put("code", 0);
PayOrder order = new PayOrder("订单title", "摘要", null == price ? new BigDecimal(0.01) : price, UUID.randomUUID().toString().replace("-", ""), PayType.valueOf(payResponse.getStorage().getPayType()).getTransactionType(transactionType));
data.put("orderInfo", payResponse.getService().orderInfo(order));
data.put("orderInfo", payResponse.getService().app(order));
return data;
}

View File

@@ -139,7 +139,7 @@ public class UnionPayController {
//APPLE支付 苹果付
// order.setTransactionType(UnionTransactionType.APPLE);
data.put("orderInfo", service.orderInfo(order));
data.put("orderInfo", service.app(order));
return data;
}