魏熙美 6 vuotta sitten
vanhempi
commit
4546ee33f4

+ 9
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/WxLoginServiceImpl.java Näytä tiedosto

@@ -29,6 +29,7 @@ import org.springframework.web.client.RestTemplate;
29 29
 
30 30
 import javax.servlet.http.HttpServletRequest;
31 31
 import javax.servlet.http.HttpSession;
32
+import java.io.UnsupportedEncodingException;
32 33
 import java.net.URLDecoder;
33 34
 import java.net.URLEncoder;
34 35
 import java.util.Date;
@@ -144,9 +145,16 @@ public class WxLoginServiceImpl implements WxLoginServiceI {
144 145
 		if (StringUtils.isBlank(openid)) {
145 146
 			throw new WisdomException("openid 参数缺失!");
146 147
 		}
148
+		String nickname = jsonObject.getString("nickname");
149
+		try {
150
+			nickname = new String(nickname.getBytes("ISO-8859-1"), "UTF-8");
151
+			logger.info("解决微信昵称乱码后的昵称:{}", nickname);
152
+		} catch (UnsupportedEncodingException e) {
153
+			e.printStackTrace();
154
+		}
147 155
 
148 156
 		user.setOpenid(openid);
149
-		user.setNickname(jsonObject.getString("nickname"));
157
+		user.setNickname(nickname);
150 158
 
151 159
 		// 更新用户信息
152 160
 		taUserMapper.updateByPrimaryKeySelective(user);

+ 4
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/SysMenuServiceImpl.java Näytä tiedosto

@@ -1,6 +1,7 @@
1 1
 package com.community.huiju.service.impl;
2 2
 
3 3
 
4
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4 5
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
5 6
 import com.community.commom.mode.ResponseBean;
6 7
 import com.community.commom.session.UserElement;
@@ -37,7 +38,9 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
37 38
 	@Override
38 39
 	public ResponseBean getMenuList(UserElement userElement) {
39 40
 		ResponseBean responseBean = new ResponseBean();
40
-		List<SysMenu> sysMenuList = sysMenuMapper.selectList(null);
41
+		QueryWrapper<SysMenu> sysMenuQueryWrapper = new QueryWrapper<>();
42
+		sysMenuQueryWrapper.ne("status", "9");
43
+		List<SysMenu> sysMenuList = sysMenuMapper.selectList(sysMenuQueryWrapper);
41 44
 		List<SysMenu> menuList = new ArrayList<SysMenu>();
42 45
 		sysMenuList.stream().forEach(sysMenu -> {
43 46
 			//父节点是0的,为根节点。

+ 8
- 8
VUECODE/smart-property-manage/src/router/index.js Näytä tiedosto

@@ -47,14 +47,14 @@ export const constantRouterMap = [
47 47
         path: '/building/index',
48 48
         component: () => import('@/views/building/index'),
49 49
         name: 'building-index',
50
-        meta: { title: '楼栋业主资料库', icon: 'building' }
50
+        meta: { title: '业主资料库', icon: 'building' }
51 51
       },
52 52
       {
53 53
         path: '/building/info/index',
54 54
         component: () => import('@/views/building/info/index'),
55 55
         name: 'building-info-index',
56 56
         hidden: true,
57
-        meta: { title: '楼栋业主资料库详情', icon: 'building' }
57
+        meta: { title: '业主资料库详情', icon: 'building' }
58 58
       },
59 59
       {
60 60
         path: '/building/buildingdata/edibuildingdata',
@@ -63,12 +63,12 @@ export const constantRouterMap = [
63 63
         hidden: true,
64 64
         meta: { title: '小区楼栋添加节点', icon: 'building' }
65 65
       },
66
-      {
67
-        path: '/owner/index',
68
-        component: () => import('@/views/owner/index'),
69
-        name: 'owner-index',
70
-        meta: { title: '已认证业主', icon: 'building' }
71
-      },
66
+      // {
67
+      //   path: '/owner/index',
68
+      //   component: () => import('@/views/owner/index'),
69
+      //   name: 'owner-index',
70
+      //   meta: { title: '已认证业主', icon: 'building' }
71
+      // },
72 72
       {
73 73
         path: '/building/batch',
74 74
         component: () => import('@/views/building/batch/batchImport'),