多商户配置

This commit is contained in:
2023-08-15 15:53:37 +08:00
parent a64b2e56fe
commit 253a527b7b
3 changed files with 11 additions and 4 deletions

View File

@@ -255,6 +255,9 @@ public class PayController extends BaseController {
throw new BusinessException(ReturnCodeEnum.CODE_TOKEN_ERROR);
}
dto.setMemberId(memberId);
// 设置appId
dto.setAppId(request.getHeader("appId"));
// 获取openId
String openId = memberService.getOpenIdByCode(dto.getCode());
if (StringUtils.isBlank(openId)) {
throw new BusinessException(ReturnCodeEnum.CODE_GET_OPEN_ID_BY_CODE_ERROR);