| | |
| | | |
| | | ResponseEntity<String> paramOut = outRestTemplate.getForEntity(url, String.class); |
| | | |
| | | logger.debug("调用微信换去openId ", paramOut); |
| | | logger.debug("调用微信换去openId {}", paramOut); |
| | | if (paramOut.getStatusCode() != HttpStatus.OK) { |
| | | return ResultVo.redirectPage("/"); |
| | | |
| | |
| | | |
| | | paramOut = outRestTemplate.getForEntity(url, String.class); |
| | | |
| | | logger.debug("调用微信换去openId ", paramOut); |
| | | logger.debug("调用微信换去openId {}", paramOut); |
| | | if (paramOut.getStatusCode() != HttpStatus.OK) { |
| | | return ResultVo.redirectPage("/"); |
| | | } |
| | |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, paramAuth.toJSONString(), |
| | | "/staff/updateStaffAppAuth", HttpMethod.POST); |
| | | url = MappingCache.getValue("OWNER_WECHAT_URL"); |
| | | if(url.contains("/#/")){ |
| | | if(url.contains("?")){ |
| | | url += ("&wAppId="+smallWeChatDto.getAppId()); |
| | | }else{ |
| | | url += ("?wAppId="+smallWeChatDto.getAppId()); |
| | | } |
| | | }else{ |
| | | url += ("/#/?wAppId="+smallWeChatDto.getAppId()); |
| | | } |
| | | return ResultVo.redirectPage(url); |
| | | |
| | | } |