改回配置文件,修复小BUG
This commit is contained in:
parent
1eb8578dc8
commit
40c652cfa1
@ -83,11 +83,11 @@ public class ImageServiceImpl extends ServiceImpl<ImageStoreMapper, StoreImage>
|
|||||||
.object(imageName)
|
.object(imageName)
|
||||||
.build();
|
.build();
|
||||||
try {
|
try {
|
||||||
|
String avatar = mapper.selectById(id).getAvatar();
|
||||||
client.putObject(args);
|
client.putObject(args);
|
||||||
if(mapper.update(null, Wrappers.<Account>update()
|
if(mapper.update(null, Wrappers.<Account>update()
|
||||||
.eq("id", id)
|
.eq("id", id)
|
||||||
.set("avatar", imageName)) > 0) {
|
.set("avatar", imageName)) > 0) {
|
||||||
String avatar = mapper.selectById(id).getAvatar();
|
|
||||||
this.deleteOldAvatar(avatar);
|
this.deleteOldAvatar(avatar);
|
||||||
return imageName;
|
return imageName;
|
||||||
} else {
|
} else {
|
||||||
|
@ -4,20 +4,17 @@ springdoc:
|
|||||||
swagger-ui:
|
swagger-ui:
|
||||||
operations-sorter: alpha
|
operations-sorter: alpha
|
||||||
spring:
|
spring:
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: 192.168.0.8
|
|
||||||
mail:
|
mail:
|
||||||
host: smtp.163.com
|
host: smtp.163.com
|
||||||
username: javastudy111@163.com
|
username: javastudy111@163.com
|
||||||
password: QGLYGBVECIASGPWQ
|
password: QGLYGBVECIASGPWQ
|
||||||
rabbitmq:
|
rabbitmq:
|
||||||
addresses: 192.168.0.8
|
addresses: localhost
|
||||||
username: admin
|
username: admin
|
||||||
password: admin
|
password: admin
|
||||||
virtual-host: /
|
virtual-host: /
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:mysql://192.168.0.8:3306/test
|
url: jdbc:mysql://localhost:3306/test
|
||||||
username: root
|
username: root
|
||||||
password: 123456
|
password: 123456
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
@ -43,7 +40,7 @@ spring:
|
|||||||
credentials: false
|
credentials: false
|
||||||
methods: '*'
|
methods: '*'
|
||||||
minio:
|
minio:
|
||||||
endpoint: 'http://192.168.0.8:9000'
|
endpoint: 'http://localhost:9000'
|
||||||
username: 'minio'
|
username: 'minio'
|
||||||
password: 'password'
|
password: 'password'
|
||||||
weather:
|
weather:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user