fix: 联合登录
This commit is contained in:
parent
1cc939f457
commit
0267597b20
@ -276,7 +276,7 @@ public class ConnectServiceImpl extends ServiceImpl<ConnectMapper, Connect> impl
|
|||||||
if(member==null){
|
if(member==null){
|
||||||
LambdaQueryWrapper<Connect> queryWrapper = new LambdaQueryWrapper<Connect>();
|
LambdaQueryWrapper<Connect> queryWrapper = new LambdaQueryWrapper<Connect>();
|
||||||
//使用UnionId登录
|
//使用UnionId登录
|
||||||
if (StrUtil.isNotBlank(authUser.getToken().getUnionId())) {
|
if (authUser.getToken() != null && StrUtil.isNotBlank(authUser.getToken().getUnionId())) {
|
||||||
queryWrapper.eq(Connect::getUnionId, authUser.getToken().getUnionId())
|
queryWrapper.eq(Connect::getUnionId, authUser.getToken().getUnionId())
|
||||||
.eq(Connect::getUnionType, authUser.getSource());
|
.eq(Connect::getUnionType, authUser.getSource());
|
||||||
} else {
|
} else {
|
||||||
|
@ -106,10 +106,10 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CategoryVO> categoryTree() {
|
public List<CategoryVO> categoryTree() {
|
||||||
List<CategoryVO> categoryVOList = (List<CategoryVO>) cache.get(CachePrefix.CATEGORY.getPrefix());
|
// List<CategoryVO> categoryVOList = (List<CategoryVO>) cache.get(CachePrefix.CATEGORY.getPrefix());
|
||||||
if (categoryVOList != null) {
|
// if (categoryVOList != null) {
|
||||||
return categoryVOList;
|
// return categoryVOList;
|
||||||
}
|
// }
|
||||||
|
|
||||||
//获取全部分类
|
//获取全部分类
|
||||||
LambdaQueryWrapper<Category> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<Category> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
@ -117,7 +117,7 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i
|
|||||||
List<Category> list = this.list(queryWrapper);
|
List<Category> list = this.list(queryWrapper);
|
||||||
|
|
||||||
//构造分类树
|
//构造分类树
|
||||||
categoryVOList = new ArrayList<>();
|
List<CategoryVO> categoryVOList = new ArrayList<>();
|
||||||
for (Category category : list) {
|
for (Category category : list) {
|
||||||
if ("0".equals(category.getParentId())) {
|
if ("0".equals(category.getParentId())) {
|
||||||
CategoryVO categoryVO = new CategoryVO(category);
|
CategoryVO categoryVO = new CategoryVO(category);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user