|
@@ -275,7 +275,7 @@ public class ResourceController {
|
275
|
275
|
String authHeader = request.getHeader("Authorization");
|
276
|
276
|
String userCode = jwtService.decryptUsernameWithHeader(authHeader);
|
277
|
277
|
Integer userId = userInfoService.detailByUserCode(userCode).getUserId();
|
278
|
|
- return MessageBean.ok(baseService.ossAddModel(file, "resource/model/" + request.getLocalAddr() + "/" + request.getLocalPort() + request.getContextPath() + "/" + userId + "/"), "oss上传");
|
|
278
|
+ return MessageBean.ok(baseService.ossAddModel(file, "resource/model/" + request.getRemoteHost()+ "/" + request.getLocalPort() + request.getContextPath() + "/" + userId + "/"), "oss上传");
|
279
|
279
|
}
|
280
|
280
|
|
281
|
281
|
|