admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/controller/client/v2/HomeNavbarControllerV2.java
@@ -51,9 +51,9 @@
   public void changeSex(AcceptData acceptData, Integer sex, PrintWriter out) {
      try {
         // 获取设备定义性别
         int deviceSex = deviceSexService.changeDeviceSex(sex, acceptData.getDevice());
         deviceSexService.save(acceptData.getDevice(), sex);
         JSONObject data = new JSONObject();
         data.put("sex", deviceSex);
         data.put("sex", sex);
         out.print(JsonUtil.loadTrueResult(data));
      } catch (Exception e) {
         out.print(JsonUtil.loadFalseResult("切换失败"));
@@ -229,7 +229,7 @@
         out.print(JsonUtil.loadTrueResult("保存成功"));
         
         // 设置为通用
         deviceSexService.changeDeviceSex(0, acceptData.getDevice());
         deviceSexService.save(acceptData.getDevice(), 0);
         
      } catch (HomeNavbarUserException e) {
         out.print(JsonUtil.loadFalseResult(1, e.getMsg()));
@@ -288,7 +288,7 @@
         out.print(JsonUtil.loadTrueResult(data));
         
         // 设置为通用
         deviceSexService.changeDeviceSex(0, acceptData.getDevice());
         deviceSexService.save(acceptData.getDevice(), 0);
                  
      } catch (HomeNavbarUserException e) {
         out.print(JsonUtil.loadFalseResult(1, e.getMsg()));