tianboguang 3 gadi atpakaļ
vecāks
revīzija
c572822cb7

+ 1 - 2
platform-api/src/main/java/com/platform/api/ApiBrandController.java

@@ -194,9 +194,8 @@ public class ApiBrandController extends ApiBaseAction {
             if(!ObjectUtils.isEmpty(sceneRes)){
                 entity.setSceneName(sceneRes.getString("sceneName"));
             }
-            Long userId = getUserId();
             int canshow = 0;
-            UserVo userVo = apiUserService.queryObject(userId);
+            UserVo userVo = apiUserService.queryByMobile(getUserName());
             if(null != userVo && org.apache.commons.lang.StringUtils.isNotBlank(userVo.getMobile())){
                 //检查是否有带看权限,并更新
                 TbUser sysUserEntity = zhiHouseService.queryByUserMobile(userVo.getMobile());