|
|
|
@ -47,6 +47,9 @@ public class UserDao extends BaseDao<MyInfo> { |
|
|
|
|
@Value("${register.credit-score}") |
|
|
|
|
private int creditScore; |
|
|
|
|
|
|
|
|
|
@Value("${register.credit-score-tip}") |
|
|
|
|
private String creditScoreTip; |
|
|
|
|
|
|
|
|
|
@Value("${spring.resources.static-locations}") |
|
|
|
|
private String imgPath; |
|
|
|
|
|
|
|
|
@ -189,6 +192,12 @@ public class UserDao extends BaseDao<MyInfo> { |
|
|
|
|
myInfo.setCreditScore(creditScore); |
|
|
|
|
myInfo.setPosts(0); |
|
|
|
|
myInfo.setVisitors(0); |
|
|
|
|
EditScore editScore=new EditScore(); |
|
|
|
|
editScore.setUsername(userRegister.getUsername()); |
|
|
|
|
editScore.setBeforeScore(0); |
|
|
|
|
editScore.setScore(creditScore); |
|
|
|
|
editScore.setNotes(String.format(creditScoreTip,creditScore)); |
|
|
|
|
updateScore(editScore); |
|
|
|
|
save(myInfo); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|