fix - OSS服务器文件分类更精细
This commit is contained in:
@@ -114,12 +114,12 @@ public class MemberController extends BaseApiController {
|
||||
* @param file
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping(value = "/member/face/info", method = RequestMethod.POST)
|
||||
@AccessToken
|
||||
public ResponseDTO setMemberFaceInfo(@RequestParam("image") MultipartFile file) {
|
||||
memberService.setMemberFaceInfo(getLoginMemberId(), file, PlatformContext.getValue());
|
||||
return ResponseDTO.ok();
|
||||
}
|
||||
// @RequestMapping(value = "/member/face/info", method = RequestMethod.POST)
|
||||
// @AccessToken
|
||||
// public ResponseDTO setMemberFaceInfo(@RequestParam("image") MultipartFile file) {
|
||||
// memberService.setMemberFaceInfo(getLoginMemberId(), file, PlatformContext.getValue());
|
||||
// return ResponseDTO.ok();
|
||||
// }
|
||||
|
||||
/**
|
||||
* 提现申请
|
||||
|
||||
@@ -195,17 +195,17 @@ public class LoginRegisterServiceImpl extends BaseServiceImpl {
|
||||
}
|
||||
|
||||
//将微信头像上传到OSS
|
||||
public String updateWxImgToOss(String avatar) throws IOException {
|
||||
CloseableHttpClient client = HttpClientBuilder.create().build();
|
||||
HttpGet httpget = new HttpGet(avatar);
|
||||
RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(1000).setConnectTimeout(1200).build();
|
||||
httpget.setConfig(requestConfig);
|
||||
HttpResponse response = null;
|
||||
response = client.execute(httpget);
|
||||
HttpEntity resEntity = response.getEntity();
|
||||
InputStream inputStream = resEntity.getContent();
|
||||
return ossClientUtil.upload(System.currentTimeMillis() + ".png", inputStream);
|
||||
}
|
||||
// public String updateWxImgToOss(String avatar) throws IOException {
|
||||
// CloseableHttpClient client = HttpClientBuilder.create().build();
|
||||
// HttpGet httpget = new HttpGet(avatar);
|
||||
// RequestConfig requestConfig = RequestConfig.custom().setSocketTimeout(1000).setConnectTimeout(1200).build();
|
||||
// httpget.setConfig(requestConfig);
|
||||
// HttpResponse response = null;
|
||||
// response = client.execute(httpget);
|
||||
// HttpEntity resEntity = response.getEntity();
|
||||
// InputStream inputStream = resEntity.getContent();
|
||||
// return ossClientUtil.upload(System.currentTimeMillis() + ".png", inputStream);
|
||||
// }
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@@ -23,5 +23,7 @@ sv:
|
||||
file:
|
||||
store:
|
||||
image: imagetest/
|
||||
video: videotest/
|
||||
coach: coachtest/
|
||||
config: configtest/
|
||||
barcode: barcodetest/
|
||||
health: health-docstest/
|
||||
|
||||
@@ -16,5 +16,7 @@ sv:
|
||||
file:
|
||||
store:
|
||||
image: image/
|
||||
video: video/
|
||||
coach: coach/
|
||||
config: config/
|
||||
barcode: barcode/
|
||||
health: health-docs/
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://yingdiandian.mysql.rds.aliyuncs.com:3306/smart_venue?useUnicode=true&characterEncoding=utf-8&autoReconnect=true&serverTimezone=GMT%2b8
|
||||
username: yingdd
|
||||
password: Yingdd2015
|
||||
redis:
|
||||
host: 121.41.101.63
|
||||
password: yingdiandian2015
|
||||
timeout: 6000
|
||||
port: 6379
|
||||
|
||||
jpa:
|
||||
show-sql: true
|
||||
Reference in New Issue
Block a user