|
|
@@ -545,12 +545,13 @@ public class AuthAccessTokenServiceImpl extends ServiceImpl<AuthAccessTokenMappe
|
|
|
String url = config.getUnlimitedQRCode() + accessToken;
|
|
|
//文件名称
|
|
|
String fileName = java.util.UUID.randomUUID().toString() + ".png";
|
|
|
- //文件相对路径
|
|
|
- String filePath = this.createDirByPath("qr_code") + fileName;
|
|
|
- //调接口写文件
|
|
|
- ResponseResultVO<String> responseResultVO = HttpUtils.postReturnFile(url, param, filePath);
|
|
|
+ //文件绝对路径 - 写
|
|
|
+ String absolutelyPath = this.createDirByPath("qr_code") + fileName;
|
|
|
+ //调接口写图片
|
|
|
+ ResponseResultVO<String> responseResultVO = HttpUtils.postReturnFile(url, param, absolutelyPath);
|
|
|
+
|
|
|
if (responseResultVO.getCode() == ResponseCodeEnum.SUCCESS.getCode()) {
|
|
|
- return ResponseResultUtil.success(filePath);
|
|
|
+ return ResponseResultUtil.success(absolutelyPath.replace(config.getUploadPath(),"")+ fileName);
|
|
|
} else {
|
|
|
return responseResultVO;
|
|
|
}
|