|  |  |  | 
|---|
|  |  |  | if(StrUtil.isNotEmpty(avatarUrl)){ | 
|---|
|  |  |  | mallMember.setAvatar(avatarUrl); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | mallMember.setSex(apiXcxSaveInfoDto.getGender() == 1 ? "女" : "男"); | 
|---|
|  |  |  | //        mallMember.setSex(1 == apiXcxSaveInfoDto.getGender() ? "女" : "男"); | 
|---|
|  |  |  | this.baseMapper.updateById(mallMember); | 
|---|
|  |  |  | return new FebsResponse().success(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.baseMapper.updateById(mallMember); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public FebsResponse agentDetail() { | 
|---|
|  |  |  | DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( | 
|---|
|  |  |  | DataDictionaryEnum.AGENT_DETAILS.getType(), DataDictionaryEnum.AGENT_DETAILS.getCode()); | 
|---|
|  |  |  | Map<String, Object> map = new HashMap<>(); | 
|---|
|  |  |  | if(ObjectUtil.isNotEmpty(dataDictionaryCustom)){ | 
|---|
|  |  |  | map.put("agentDetail", dataDictionaryCustom.getValue()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return new FebsResponse().success().data(map); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private  String getXcxLoginUrl(String code) { | 
|---|
|  |  |  | String wechatLoginUrl =xcxProperties.getWecharLoginUrl(); | 
|---|
|  |  |  | return String.format(wechatLoginUrl, xcxProperties.getXcxAppid(), xcxProperties.getXcxSecret(), code); | 
|---|