예제 #1
0
 /**
  * 根据输入参数term_id,auth_code验证auth_code是否正确
  *
  * @return
  */
 protected boolean validAuthCode() {
   if (StringUtils.isNotBlank(mobile_id) && StringUtils.isNotBlank(auth_code)) {
     String cacheAuthCode = mdbImpl.getString(MsiRedisKey.getAuthcodeKey(mobile_id));
     if (null != cacheAuthCode) {
       return cacheAuthCode.equals(auth_code);
     }
   }
   return false;
 }
예제 #2
0
 public void delLogin_stb_id() {
   mdbImpl.removeString(MsiRedisKey.getLoginStbIdKey(mobile_id));
 }
예제 #3
0
 public void setLogin_stb_id(String login_stb_id) {
   mdbImpl.putString(
       MsiRedisKey.getLoginStbIdKey(mobile_id), MsiConstans.oneDaySeconds, login_stb_id);
 }
예제 #4
0
 public String getLogin_stb_id() {
   return mdbImpl.getString(MsiRedisKey.getLoginStbIdKey(mobile_id));
 }