| | |
| | | * @return |
| | | */ |
| | | public String getAccessToken(){ |
| | | String url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wxc89ecab90d24edd8&secret=bca863174d22736a4a9758a67484947e"; |
| | | String url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=wx66a25427a9e6f21e&secret=5ccdfc37576afe86b2a5532b88bfd147"; |
| | | String backData = restTemplate.getForObject(url, String.class); |
| | | String accessToken = JSONObject.parseObject(backData).getString("access_token"); |
| | | return accessToken; |
| | |
| | | ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bytes); |
| | | MultipartFile file = new MockMultipartFile(ContentType.APPLICATION_OCTET_STREAM.toString(), byteArrayInputStream); |
| | | // ResultUtil resultUtil = userInfoController.uploadImg(file, null, null); |
| | | String s = OssUploadUtil.ossUpload(file,driverId); |
| | | String s = ObsUploadUtil.obsUpload(file,driverId); |
| | | System.err.println("===url"+s); |
| | | // StringBuilder sb = new StringBuilder(stringApiResult); |
| | | // stringApiResult = sb.toString(); |