mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 微信登录查询merchantId
This commit is contained in:
@@ -96,6 +96,9 @@ public class MemberService {
|
||||
@Value("${adapay.callback}")
|
||||
private String ADAPAY_CALLBACK_URL;
|
||||
|
||||
@Value("${weixin.login.appid}")
|
||||
private String APP_ID;
|
||||
|
||||
/**
|
||||
* 校验短信验证码
|
||||
* @param dto
|
||||
@@ -203,8 +206,10 @@ public class MemberService {
|
||||
} catch (Exception e) {
|
||||
log.error("getOpenIdByCode发生异常", e);
|
||||
}
|
||||
// 根据appid查询merchantId
|
||||
String merchantId = pileMerchantInfoService.getMerchantIdByAppId(APP_ID);
|
||||
// 查询手机号码是否注册过
|
||||
return memberRegisterAndLogin(mobileNumber, null, openId);
|
||||
return memberRegisterAndLogin(mobileNumber, merchantId, openId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user