| | |
| | | byte[] bytes = rep.getBody(); |
| | | 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); |
| | | System.err.println("===url"+s); |
| | | // StringBuilder sb = new StringBuilder(stringApiResult); |
| | | // stringApiResult = sb.toString(); |
| | | return s; |
| | | |
| | | } catch (Exception e) { |