|
@@ -104,13 +104,14 @@ public class UserAuthServiceImpl implements UserAuthService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Result updatePassword(String key, String token, Long userId, String password) throws Exception {
|
|
|
- Assert.notNull(userId, "UserId must be not null.");
|
|
|
+ public Result updateStudentPassword(String key, String token, Long studentId, String password, String newPassword) throws Exception {
|
|
|
+ Assert.notNull(studentId, "StudentId must be not null.");
|
|
|
//封装请求参数
|
|
|
- final String requestUrl = String.format("%s/api/ecs_core/user/password", propertyService.getUserAuthUrl());
|
|
|
+ final String requestUrl = String.format("%s/api/ecs_core/student/password", propertyService.getUserAuthUrl());
|
|
|
RequestBody formBody = new FormBody.Builder()
|
|
|
- .add("userId", userId.toString())
|
|
|
+ .add("studentId", studentId.toString())
|
|
|
.add("password", password)
|
|
|
+ .add("newPassword", password)
|
|
|
.build();
|
|
|
return HttpUtils.doPut(requestUrl, formBody, key, token);
|
|
|
}
|