From e02c79f3e4aaef75897a0afe50742e30f65a8781 Mon Sep 17 00:00:00 2001 From: phachon Date: Mon, 22 Jan 2018 11:57:53 +0800 Subject: [PATCH] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2c4df8e..463d2d9 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ config.toml 文件读取顺序:
upload="127.0.0.1:8087" # 监听下载 server download="127.0.0.1:8088" + [upload] form_field="upload" // 表单提交字段 allow_type = [".jpg", ".jpeg", ".png"] // 允许上传的图片格式 @@ -70,10 +71,10 @@ uri = "http://test.com:8088" "code":"1", // 1:success, 0:error "message":"", // error message "data":{ - "image": "http://127.0.0.1:8087/image/LYEDBYKAFGGRJUFL.png" - "image_200_200": "http://127.0.0.1:8087/image/LYEDBYKAFGGRJUFL_200_200.png" - "image_200_400": "http://127.0.0.1:8087/image/LYEDBYKAFGGRJUFL_200_400.png" - "image_300_300": "http://127.0.0.1:8087/image/LYEDBYKAFGGRJUFL_300_300.png" + "image": "http://test.com:8088/image/LYEDBYKAFGGRJUFL.png" + "image_200_200": "http://test.com:8088/image/LYEDBYKAFGGRJUFL_200_200.png" + "image_200_400": "http://test.com:8088/image/LYEDBYKAFGGRJUFL_200_400.png" + "image_300_300": "http://test.com:8088/image/LYEDBYKAFGGRJUFL_300_300.png" }, // server image url } ```