Commit ce0d2beb6512a371170d961dbe4c9e5cac4c932d

Authored by liquanyu
1 parent ea24fec21c

code update

Showing 2 changed files with 5 additions and 2 deletions

platform-common/src/main/java/com/lyms/platform/common/constants/ErrorCodeConstants.java View file @ ce0d2be
... ... @@ -52,5 +52,8 @@
52 52 public static final int DONT_DELETE=4201;
53 53 //
54 54 public static final int BUSINESS_ERROR1 = 4018;
  55 +
  56 + //没有权限
  57 + public static final int NO_POWER = 4021;
55 58 }
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/SmsConfigFacade.java View file @ ce0d2be
... ... @@ -738,7 +738,7 @@
738 738 if (!isRunning)
739 739 {
740 740 BaseResponse objectResponse = new BaseResponse();
741   - objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
  741 + objectResponse.setErrorcode(ErrorCodeConstants.NO_POWER);
742 742 objectResponse.setErrormsg("暂无发送权限");
743 743 return objectResponse;
744 744 }
... ... @@ -761,7 +761,7 @@
761 761 if (!isStart)
762 762 {
763 763 BaseResponse objectResponse = new BaseResponse();
764   - objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
  764 + objectResponse.setErrorcode(ErrorCodeConstants.NO_POWER);
765 765 objectResponse.setErrormsg("暂无发送权限");
766 766 return objectResponse;
767 767 }