Commit 0c4f3a64 by yangjinhu

UI七牛云接口更改

parent 4de57bf2
...@@ -41,7 +41,7 @@ public class FileController { ...@@ -41,7 +41,7 @@ public class FileController {
@LoginIgnore @LoginIgnore
@ApiOperation("七牛云UiBot上传文件接口") @ApiOperation("七牛云UiBot上传文件接口")
@PostMapping("uiBot/uploadXlsx") @PostMapping("/uiBot/uploadXlsx")
public CostResult<String> xUpload(MultipartFile file) { public CostResult<String> xUpload(MultipartFile file) {
if (file != null) { if (file != null) {
String url = QNUtils.upLoad(file); String url = QNUtils.upLoad(file);
......
...@@ -78,7 +78,7 @@ public class QNUtils { ...@@ -78,7 +78,7 @@ public class QNUtils {
DefaultPutRet putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class); DefaultPutRet putRet = new Gson().fromJson(response.bodyString(), DefaultPutRet.class);
System.out.println(putRet.key); System.out.println(putRet.key);
System.out.println(putRet.hash); System.out.println(putRet.hash);
url = BASE_URL+putRet.key; url = BASE_URL+"/"+putRet.key;
} catch (QiniuException e) { } catch (QiniuException e) {
Response r = e.response; Response r = e.response;
System.err.println(r.toString()); System.err.println(r.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment