admin
2019-08-26 d28bed1a1275131a5ca37f7da37961e2b518ac07
fanli/src/main/java/com/yeshi/fanli/util/RedisManager.java
@@ -388,8 +388,6 @@
    */
   public void saveSMSVCode(String phone, int type, String code) {
      if (!Constant.IS_OUTNET)
         return;
      String key = "smscode-" + phone + "-" + type;
      // 保存2分钟
      setString(key, code, 120);
@@ -402,8 +400,8 @@
    * @return
    */
   public String getSMSVCode(String phone, int type) {
      if (!Constant.IS_OUTNET)
         return "";
//      if (!Constant.IS_OUTNET)
//         return "";
      String key = "smscode-" + phone + "-" + type;
      // 保存2分钟
      return getString(key);
@@ -417,8 +415,8 @@
    * @param code
    */
   public void clearSMSVCode(String phone, int type) {
      if (!Constant.IS_OUTNET)
         return;
//      if (!Constant.IS_OUTNET)
//         return;
      String key = "smscode-" + phone + "-" + type;
      removeKey(key);
   }