コード例 #1
0
 @Override
 protected int getReqNo() {
   LoginResult result = loggedInfo.get(phoneNum);
   if (result != null) {
     return result.getNextReqNo();
   }
   return super.getReqNo();
 }
コード例 #2
0
 @Override
 protected boolean checkStatus() throws JointException {
   LoginResult lr = checkLogin();
   int index = checkIndex();
   if (index == -1) {
     return false;
   }
   char c = lr.getStatus().charAt(index);
   return c != '1' && c != '2';
 }
コード例 #3
0
 private LoginResult checkLogin() throws JointException {
   LoginResult result = loggedInfo.get(phoneNum);
   if (result == null) {
     try {
       LoginAction la =
           new LoginAction(phoneNum, password, position, appVersion, manager.getProduct());
       LoginResult lr = (LoginResult) la.process(manager);
       if (!lr.isSuccess()) {
         throw new JointException(lr.getMsg());
       }
       loggedInfo.put(phoneNum, lr);
       result = lr;
     } catch (IOException e) {
       LOG.error("login error", e);
       throw new JointException(e.getMessage());
     }
   }
   return result;
 }