正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -10,7 +10,7 @@ type CreateUploadImageResponse struct { | @@ -10,7 +10,7 @@ type CreateUploadImageResponse struct { | ||
| 10 | ImageURL string `json:"imageURL"` | 10 | ImageURL string `json:"imageURL"` |
| 11 | UploadAddress string `json:"uploadAddress"` | 11 | UploadAddress string `json:"uploadAddress"` |
| 12 | UploadAuth string `json:"uploadAuth"` | 12 | UploadAuth string `json:"uploadAuth"` |
| 13 | - FileURL string `json:"-"` //fileURL | 13 | + FileURL string `json:"fileURL"` //fileURL |
| 14 | } | 14 | } |
| 15 | 15 | ||
| 16 | type CreateUploadImagesRequest struct { | 16 | type CreateUploadImagesRequest struct { |
| @@ -180,6 +180,7 @@ func CreateUploadImage(header *protocol.RequestHeader, request *aliyun.CreateUpl | @@ -180,6 +180,7 @@ func CreateUploadImage(header *protocol.RequestHeader, request *aliyun.CreateUpl | ||
| 180 | request.FileName = aliyun.DefaultImageFileName | 180 | request.FileName = aliyun.DefaultImageFileName |
| 181 | } | 181 | } |
| 182 | rsp, err = aliyun.CreateUploadImage(client, request) | 182 | rsp, err = aliyun.CreateUploadImage(client, request) |
| 183 | + rsp.FileURL = rsp.ImageURL | ||
| 183 | if err != nil { | 184 | if err != nil { |
| 184 | log.Error(err) | 185 | log.Error(err) |
| 185 | } | 186 | } |
-
请 注册 或 登录 后发表评论