/**
  * 一卡通充值入口界面预处理
  *
  * @return
  * @throws IOException
  */
 @Action("ecardpre")
 public String prepaid() throws IOException {
   Object openid = getSession().get("openid");
   if (!CommonUtil.isEmpty(openid)) {
     DBObject user =
         MongoUtil.getInstance()
             .getDB()
             .getCollection("Bindings")
             .findOne(new BasicDBObject("openid", openid));
     binds = new TACOAuth2Model().fetchUserinfo(user);
     if (binds != null && binds.size() > 0) {
       for (Object b : binds) {
         if (b instanceof Map) {
           Map bm = (Map) b;
           String uid = String.valueOf(bm.get("user_id"));
           bm.put("unpaid", SWEcardModel.unpaid(uid));
         }
       }
     }
   }
   if (binds == null) binds = new ArrayList();
   return SUCCESS;
 }