Esempio n. 1
0
 /*     */ public String onPay(PayCfg payCfg, Order order) /*     */ {
   /*  53 */ IUserService userService = UserServiceFactory.getUserService();
   /*  54 */ Member member = userService.getCurrentMember();
   /*  55 */ if (member == null)
   /*     */ {
     /*  57 */ String url = "";
     /*     */ try {
       /*  59 */ url =
           URLEncoder.encode(
               "widget?type=paywidget&orderid="
                   + order.getOrder_id()
                   + "&paymentid="
                   + payCfg.getId(),
               "UTF-8");
       /*     */ } catch (UnsupportedEncodingException e) {
       /*  61 */ e.printStackTrace();
       /*     */ }
     /*     */
     /*  64 */ return "<script>location.href='member_login.html?forward=" + url + "'</script>";
     /*     */ }
   /*     */
   /*  67 */ return "<script>location.href='"
       + getReturnUrl(payCfg)
       + "&ordersn="
       + order.getSn()
       + "';</script>正在支付...";
   /*     */ }
Esempio n. 2
0
 /*    */ public void onAfterOrderCreate(Order order, List<CartItem> itemList, String sessionid)
       /*    */ {
   /* 41 */ IUserService userService = UserServiceFactory.getUserService();
   /* 42 */ Member member = userService.getCurrentMember();
   /* 43 */ if (member != null)
   /*    */ {
     /* 46 */ EopSite site = EopContext.getContext().getCurrentSite();
     /*    */
     /* 48 */ HttpServletRequest request = ThreadContextHolder.getHttpRequest();
     /*    */
     /* 50 */ String domain = RequestUtil.getDomain();
     /*    */
     /* 52 */ EmailModel emailModel = new EmailModel();
     /* 53 */ emailModel.getData().put("username", member.getUname());
     /* 54 */ emailModel.getData().put("sn", order.getSn());
     /* 55 */ emailModel
         .getData()
         .put("createtime", DateUtil.toString(order.getCreate_time(), "yyyy-MM-dd HH:mm:ss"));
     /* 56 */ emailModel.getData().put("sitename", site.getSitename());
     /* 57 */ emailModel.getData().put("logo", site.getLogofile());
     /* 58 */ emailModel.getData().put("domain", domain);
     /*    */
     /* 60 */ emailModel.setTitle("订单提交成功--" + site.getSitename());
     /* 61 */ emailModel.setTo(member.getEmail());
     /* 62 */ emailModel.setTemplate("order_create_email_template.html");
     /* 63 */ this.mailMessageProducer.send(emailModel);
     /*    */ }
   /*    */ }
Esempio n. 3
0
 public String domain() {
   IUserService userService = UserServiceFactory.getUserService();
   eopSite = siteManager.get(userService.getCurrentSiteId());
   siteDomainList = domainManager.listSiteDomain();
   return "domain";
 }
Esempio n. 4
0
 public String edit_multi() {
   IUserService userService = UserServiceFactory.getUserService();
   eopSite = siteManager.get(userService.getCurrentSiteId());
   return "edit_multi";
 }
Esempio n. 5
0
 /*    */ public static void validUser(Integer userid) /*    */ {
   /* 20 */ userService = UserServiceFactory.getUserService();
   /*    */
   /* 22 */ if (!userid.equals(userService.getCurrentUserId()))
     /* 23 */ throw new EopException("非法操作");
   /*    */ }