| | |
| | | return ServerResponse.createByErrorMsg("修改代理失败"); |
| | | } |
| | | |
| | | @Override |
| | | public ServerResponse updateAgentCode(AgentUser paramAgentUser) { |
| | | int updateCount = agentUserMapper.updateAgentCode(paramAgentUser); |
| | | if (updateCount > 0) { |
| | | return ServerResponse.createBySuccessMsg("修改代理成功"); |
| | | } |
| | | return ServerResponse.createByErrorMsg("修改代理失败"); |
| | | } |
| | | |
| | | public int CountAgentNum() { |
| | | return this.agentUserMapper.CountAgentNum(); |
| | | } |
| | |
| | | |
| | | String pcUrl = host + PropertiesUtil.getProperty("site.pc.reg.url") + agentUser.getAgentCode(); |
| | | agentInfoVO.setPcUrl(pcUrl); |
| | | String mUrl = host + PropertiesUtil.getProperty("site.m.reg.url") + agentUser.getAgentCode(); |
| | | String mobileHost = PropertiesUtil.getProperty("frontend.domain.url", host); |
| | | if (StringUtils.isNotBlank(mobileHost)) { |
| | | mobileHost = mobileHost.replaceAll("/$", ""); |
| | | } else { |
| | | mobileHost = host; |
| | | } |
| | | String mUrl = mobileHost + PropertiesUtil.getProperty("site.m.reg.url") + agentUser.getAgentCode(); |
| | | agentInfoVO.setMUrl(mUrl); |
| | | return agentInfoVO; |
| | | } |