多商户配置

This commit is contained in:
2023-08-15 15:42:39 +08:00
parent 32156a0ad4
commit 935f45938c
4 changed files with 23 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ public class PayController extends BaseController {
* 充值余额支付/微信余额充值
* 提供给小程序使用
* http://localhost:8080/uniapp/pay/weixinPay
* @deprecated 使用汇付支付,充值余额
*/
@PostMapping("/weixinPay")
public RestApiResponse<?> weixinPay(HttpServletRequest request, @RequestBody WeixinPayDTO dto) {
@@ -262,8 +263,12 @@ public class PayController extends BaseController {
// 充值余额 附加参数
Map<String, Object> weixinMap = memberService.rechargeBalanceWithAdapay(dto);
response = new RestApiResponse<>(ImmutableMap.of("weixinMap", weixinMap));
} catch (BusinessException e) {
logger.error("汇付余额充值接口 error", e);
response = new RestApiResponse<>(e.getCode(), e.getMessage());
} catch (Exception e) {
response = new RestApiResponse<>();
logger.error("汇付余额充值接口 error", e);
response = new RestApiResponse<>(ReturnCodeEnum.CODE_MEMBER_RECHARGE_BALANCE_ERROR);
}
return response;
}