Ejemplo n.º 1
0
 protected override void Persistent()
 {
     foreach (var o in AllowSenders)
     {
         var bll = new JMP.BLL.jmp_app_request_audit();
         bll.Add(new JMP.MDL.jmp_app_request_audit
         {
             app_id            = o.AppId,
             app_name          = o.AppName,
             created_on        = DateTime.Now,
             is_send_message   = 1,
             message_send_time = DateTime.Now,
             message           = string.Format("应用[{0}:{1}]支付成功率异常,当前{2}分钟内的成功率为:{3},设定的阀值为:{4},请核实!", o.AppId, o.AppName, o.Minutes, o.SuccessRatio, o.ThresholdSuccessRatio)
         });
     }
     DoingWork("数据持久化完成,准备筛选...");
 }
Ejemplo n.º 2
0
 public bool Add()
 {
     if (_appRequestAudit == null)
     {
         return(false);
     }
     try
     {
         var bll = new JMP.BLL.jmp_app_request_audit();
         bll.Add(_appRequestAudit);
         return(true);
     }
     catch (Exception ex)
     {
         AddLocLog.AddLog(0, 3, "", "添加应用异常请求监控器时出错", ex.ToString());
         return(false);
     }
 }
Ejemplo n.º 3
0
 protected override void Persistent()
 {
     foreach (var o in AllowSenders)
     {
         var bll = new JMP.BLL.jmp_app_request_audit();
         bll.Add(new JMP.MDL.jmp_app_request_audit
         {
             app_id            = o.ChannelId,
             app_name          = o.ChannelName,
             created_on        = DateTime.Now,
             is_send_message   = 1,
             message_send_time = DateTime.Now,
             type    = 1,
             message = string.Format("通道[{0}:{1}]已有{2}无订单产生,上次订单时间[{3}],请核实!", o.ChannelId, o.ChannelName, DateTime.Now.AddSeconds(-o.LatestOrderTimespan).TimeAgo(""), o.LatestPayTime)
         });
     }
     DoingWork("数据持久化完成,准备筛选...");
 }