|
@@ -46,7 +46,7 @@ public class WxUserServiceImpl extends ServiceImpl<IWxUserMapper, WxUser> implem
|
|
log.info("wx-wxLogin-code:{}",code);
|
|
log.info("wx-wxLogin-code:{}",code);
|
|
WxOpenIdVo wxOpenIdVo = wxClient.getOpenIdUrl(WxConfigServiceImpl.wxConfig.getAppId(), WxConfigServiceImpl.wxConfig.getAppSecret(), code);
|
|
WxOpenIdVo wxOpenIdVo = wxClient.getOpenIdUrl(WxConfigServiceImpl.wxConfig.getAppId(), WxConfigServiceImpl.wxConfig.getAppSecret(), code);
|
|
log.info("wx-wxLogin-code:{},wxOpenIdVo:{}",code,wxOpenIdVo);
|
|
log.info("wx-wxLogin-code:{},wxOpenIdVo:{}",code,wxOpenIdVo);
|
|
- if(wxOpenIdVo.getErrcode() == 0){
|
|
|
|
|
|
+ if(wxOpenIdVo.getErrcode() == null && StringUtils.isNotBlank(wxOpenIdVo.getOpenId())){
|
|
WxUser wxUser = this.addUser(wxOpenIdVo);
|
|
WxUser wxUser = this.addUser(wxOpenIdVo);
|
|
WxUserVo vo = new WxUserVo();
|
|
WxUserVo vo = new WxUserVo();
|
|
BeanUtils.copyProperties(wxUser,vo);
|
|
BeanUtils.copyProperties(wxUser,vo);
|