fix[用户中心]:用户头像查询逻辑优化
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ public class OssService extends AbstractIFileService {
|
||||
public String getViewUrl(String fileId) {
|
||||
FileInfo fileInfo = getFileInfo(fileId);
|
||||
if (fileInfo != null) {
|
||||
return ossTemplate.getViewUrl(fileInfo.getName());
|
||||
return ossTemplate.getViewUrl(fileInfo.getPath());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: file-center
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
ip: 119.45.169.13
|
||||
# cloud:
|
||||
# nacos:
|
||||
# discovery:
|
||||
# ip: 119.45.169.13
|
||||
|
||||
Reference in New Issue
Block a user