| | |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.security.annotation.AnonymousAccess; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.param.PayParam; |
| | | import com.sandu.ximon.admin.pay.alipay.UsrAlipayConfigService; |
| | |
| | | */ |
| | | @PostMapping("/refond") |
| | | public ResponseVO<Object> refond(@RequestBody PayParam params) { |
| | | |
| | | if (params.getOutTradeNo().isEmpty() || params.getRefundAmount() == null) { |
| | | if (params.getOutTradeNo().isEmpty() || params.getOutTradeNo() == null) { |
| | | throw new BusinessException("退款参数不能为空"); |
| | | } |
| | | // 0.00 用于占位 没有实际用处 退款接口好几个地方调用 不太好改 |
| | | return ResponseUtil.success(c3mOrderService.orderRefund(params.getOutTradeNo(), |
| | | params.getRefundAmount())); |
| | | |
| | | 0.00)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | @AnonymousAccess |
| | | @PostMapping("/advancePay") |
| | | public ResponseVO<Object> advancePayOrder(@RequestBody PayParam param) throws WxErrorException { |
| | | if (param.getWxCode().isEmpty()) { |
| | |
| | | /** |
| | | * 获取wx的openid |
| | | */ |
| | | @AnonymousAccess |
| | | @PostMapping("/getWxOpenId") |
| | | public ResponseVO<Object> getWxOpenId(@RequestBody PayParam param) throws WxErrorException { |
| | | if (param.getWxCode() == null || param.getPoleId() == null || param.getWxCode().isEmpty()) { |