mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
多商户配置
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -65,9 +65,9 @@ public interface IPileMerchantInfoService {
|
||||
public int deletePileMerchantInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 获取一级运营商merchantId
|
||||
* @param appId
|
||||
* @return
|
||||
* 通过微信小程序appId查询一级运营商merchantId
|
||||
* @param appId 微信小程序appId
|
||||
* @return 一级运营商merchantId
|
||||
*/
|
||||
String getFirstLevelMerchantIdByAppId(String appId);
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 充电桩运营商信息Service业务层处理
|
||||
@@ -258,6 +257,11 @@ public class PileMerchantInfoServiceImpl implements IPileMerchantInfoService {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过微信小程序appId查询一级运营商merchantId
|
||||
* @param appId 微信小程序appId
|
||||
* @return 一级运营商merchantId
|
||||
*/
|
||||
@Override
|
||||
public String getFirstLevelMerchantIdByAppId(String appId) {
|
||||
if (StringUtils.isBlank(appId)) {
|
||||
|
||||
Reference in New Issue
Block a user