|
@@ -79,7 +79,7 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
|
|
tokenMap.put("userName", storeUser.getName());
|
|
tokenMap.put("userName", storeUser.getName());
|
|
tokenMap.put("userId", storeUser.getId().toString());
|
|
tokenMap.put("userId", storeUser.getId().toString());
|
|
tokenMap.put("userType", "store");
|
|
tokenMap.put("userType", "store");
|
|
- storeUserVo.setToken(JwtUtil.createJWT("user_" + storeUser.getPhone(), storeUser.getName(), JSONObject.toJSONString(tokenMap), effectiveTimeIntLong));
|
|
|
|
|
|
+ storeUserVo.setToken(JwtUtil.createJWT("store_" + storeUser.getPhone(), storeUser.getName(), JSONObject.toJSONString(tokenMap), effectiveTimeIntLong));
|
|
baseRedisService.setString("store_" + storeUser.getPhone(), storeUserVo.getToken());
|
|
baseRedisService.setString("store_" + storeUser.getPhone(), storeUserVo.getToken());
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeUser.getStoreId());
|
|
StoreInfo storeInfo = storeInfoMapper.selectById(storeUser.getStoreId());
|
|
if (storeInfo != null) {
|
|
if (storeInfo != null) {
|