| | |
| | | import com.hdl.photovoltaic.config.UserConfigManage; |
| | | import com.hdl.photovoltaic.databinding.FragmentMeBinding; |
| | | import com.hdl.photovoltaic.enums.HomepageTitleTabSwitch; |
| | | import com.hdl.photovoltaic.enums.UserRightType; |
| | | import com.hdl.photovoltaic.listener.CloudCallBeak; |
| | | import com.hdl.photovoltaic.other.HdlAccountLogic; |
| | | import com.hdl.photovoltaic.other.HdlLogLogic; |
| | | import com.hdl.photovoltaic.other.HdlMemberLogic; |
| | | import com.hdl.photovoltaic.other.HdlResidenceLogic; |
| | | import com.hdl.photovoltaic.other.HdlThreadLogic; |
| | | import com.hdl.photovoltaic.other.HdlUniLogic; |
| | | import com.hdl.photovoltaic.ui.bean.BUserInfo; |
| | | import com.hdl.photovoltaic.ui.bean.CUserInfo; |
| | | import com.hdl.photovoltaic.ui.bean.UserRightTypeBean; |
| | | import com.hdl.photovoltaic.ui.test.TestMainActivity; |
| | | import com.hdl.photovoltaic.uni.HDLUniMP; |
| | | import com.hdl.photovoltaic.utils.GlideUtils; |
| | |
| | | } else { |
| | | this.getCMemberInfo(); |
| | | } |
| | | getUserRightType(); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 员工权限类型(B端) |
| | | * MANAGER : 公司管理员 |
| | | * USER : 普通员工 |
| | | */ |
| | | private void getUserRightType() { |
| | | HdlMemberLogic.getInstance().getUserRightType(new CloudCallBeak<UserRightTypeBean>() { |
| | | @Override |
| | | public void onSuccess(UserRightTypeBean obj) { |
| | | // if (obj.getUserRightType().equals(UserRightType.MANAGER)) { |
| | | // viewBinding.fragmentMeLineUserManagementIl.getRoot().setVisibility(View.VISIBLE); |
| | | // } else { |
| | | // viewBinding.fragmentMeLineUserManagementIl.getRoot().setVisibility(View.GONE); |
| | | // } |
| | | } |
| | | |
| | | @Override |
| | | public void onFailure(HDLException e) { |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户自定义配置温度单位详情(app启动的时候要获取) |
| | | */ |
| | | private void getResidenceTemperatureUnit() { |