mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
多商户配置
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user