mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-08 20:10:16 +08:00
update 微信登录查询merchantId
This commit is contained in:
@@ -96,6 +96,9 @@ public class MemberService {
|
|||||||
@Value("${adapay.callback}")
|
@Value("${adapay.callback}")
|
||||||
private String ADAPAY_CALLBACK_URL;
|
private String ADAPAY_CALLBACK_URL;
|
||||||
|
|
||||||
|
@Value("${weixin.login.appid}")
|
||||||
|
private String APP_ID;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 校验短信验证码
|
* 校验短信验证码
|
||||||
* @param dto
|
* @param dto
|
||||||
@@ -203,8 +206,10 @@ public class MemberService {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("getOpenIdByCode发生异常", 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