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