Example #1
0
 /**
  * 检测接入号是否存在
  *
  * @return
  */
 @Action(
     value = "checkCorpAccessNumber",
     results = {
       @Result(
           type = "json",
           params = {"root", "message", "contentType", "text/html"})
     })
 public String isCorpAccessNumber() {
   message = 0;
   if (UserUtil.isCorpAccessNumber(userService, portalUser)) message = 1;
   return SUCCESS;
 }
Example #2
0
 /**
  * 随机生成zxtUserId,返回未使用项
  *
  * @return
  */
 private String getZxtUserId() {
   while (true) {
     String zxtUserId = UserUtil.getRandomZxtUserId();
     if (!userService.checkZxtUserIdInUse(zxtUserId)) {
       return zxtUserId;
     }
     try {
       Thread.sleep(50);
     } catch (Exception e) {
       // IGNORE
     }
   }
 }