|
@@ -205,7 +205,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
|
205
|
205
|
payload.put("id", appUser.getId());
|
206
|
206
|
payload.put("phoneNumber", appUser.getPhoneNumber());
|
207
|
207
|
payload.put("identificationCard", appUser.getIdentificationCard());
|
208
|
|
-
|
|
208
|
+ payload.put("avatar", appUser.getAvatar());
|
209
|
209
|
String secretKey = PatientBaseUtil.getSecretKey(appUser.getId());
|
210
|
210
|
//生成JWt的令牌
|
211
|
211
|
String token = JWTUtil.getToken(payload, secretKey);
|
|
@@ -224,6 +224,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper, AppUser> impl
|
224
|
224
|
Map<String, String> payload = new HashMap<>();
|
225
|
225
|
payload.put("id", userId);
|
226
|
226
|
payload.put("phoneNumber", user.getPhonenumber());
|
|
227
|
+ payload.put("avatar", user.getAvatar());
|
227
|
228
|
String secretKey = PatientBaseUtil.getSecretKey(userId);
|
228
|
229
|
//生成JWt的令牌
|
229
|
230
|
String token = JWTUtil.getToken(payload, secretKey);
|