微信登录查询方法修改为 根据appid查询一级运营商merchantid

This commit is contained in:
Lemon
2023-08-04 14:19:45 +08:00
parent 3b2a20026b
commit d4287259a3
6 changed files with 29 additions and 26 deletions

View File

@@ -633,7 +633,7 @@ public class AgentDevService {
// 获取openId
String openId = getOpenIdByCode(dto.getOpenIdCode(), appId);
// 通过 appid 查询 merchantId
String merchantId = pileMerchantInfoService.getMerchantIdByAppId(appId);
String merchantId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(appId);
logger.info("微信一键登录 获取merchantId:{}", merchantId);
// 下面方法有判断 merchantId 是否为空,因此可直接传值
return memberService.memberRegisterAndLogin(phoneNumber, merchantId, openId);