/**
  * 从配置中心读取短信和邮件发送开关
  *
  * @param messageType
  * @return
  */
 public boolean isMessageSwitchOn(MessageTypeEnum messageType) {
   boolean result = true;
   switch (messageType) {
     case email:
       result = ConfigServiceLocator.getCongfigService().getKV(emailSwitch, true);
       break;
     case sms:
       result = ConfigServiceLocator.getCongfigService().getKV(smsSwitch, true);
       break;
   }
   return result;
 }
 /**
  * 从配置中心动态读取调试开关数据
  *
  * @return
  */
 public boolean isDebug(MessageTypeEnum messageType) {
   boolean result = false;
   switch (messageType) {
     case email:
       result = ConfigServiceLocator.getCongfigService().getKV(debugEmailKey, false);
       break;
     case sms:
       result = ConfigServiceLocator.getCongfigService().getKV(debugSmsKey, false);
       break;
   }
   return result;
 }
  /**
   * 动态查询Web自动测试开关是否打开
   *
   * @return true表示打开
   */
  public static boolean isAutoTestSwitchOn() {

    return ConfigServiceLocator.getCongfigService()
        .getKV(ConfigService.KEY_RESOURCE_WEB_TEST_TRACE, false);
  }