|
@@ -76,7 +76,7 @@ class FailOrderAlertV2 extends Command
|
|
$unpaid_num = isset($pay_info['unpaid_num']) ? (int)$pay_info['unpaid_num'] : 0;
|
|
$unpaid_num = isset($pay_info['unpaid_num']) ? (int)$pay_info['unpaid_num'] : 0;
|
|
$last_create_time = isset($pay_info['last_create_time']) ? (int)$pay_info['last_create_time'] : 0;
|
|
$last_create_time = isset($pay_info['last_create_time']) ? (int)$pay_info['last_create_time'] : 0;
|
|
|
|
|
|
- $order_num = 20;
|
|
|
|
|
|
+ $order_num = 10;
|
|
if($unpaid_num >= $order_num)//超过30条都是失败订单报警
|
|
if($unpaid_num >= $order_num)//超过30条都是失败订单报警
|
|
{
|
|
{
|
|
$is_need_alert = true;
|
|
$is_need_alert = true;
|
|
@@ -99,6 +99,7 @@ class FailOrderAlertV2 extends Command
|
|
$param = ['pay_id'=>$pay_id,'new_pay_id' => $back_pay->id];
|
|
$param = ['pay_id'=>$pay_id,'new_pay_id' => $back_pay->id];
|
|
foreach ($phone_arr as $phone){
|
|
foreach ($phone_arr as $phone){
|
|
$this->sendSms($phone, 'pay_channel_change',$param);
|
|
$this->sendSms($phone, 'pay_channel_change',$param);
|
|
|
|
+ $this->sendSms($phone, 'order_remind',$param);
|
|
}
|
|
}
|
|
|
|
|
|
}else{
|
|
}else{
|
|
@@ -109,16 +110,6 @@ class FailOrderAlertV2 extends Command
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- /*if(in_array($pay_id,[41,43,46]) && $last_create_time && ($ntime - $last_create_time) > $time_str)
|
|
|
|
- {
|
|
|
|
- $is_need_alert = true;
|
|
|
|
- $content = '支付通道: '.$pay_id.' ,最近'.$time_str.'秒内没有产生一条订单,尽快排查';
|
|
|
|
- $template_type = 'order_halfhour_remind';
|
|
|
|
- $param = ['pay_id'=>$pay_id];
|
|
|
|
- foreach ($phone_arr as $phone){
|
|
|
|
- $this->sendSms($phone, $template_type,$param);
|
|
|
|
- }
|
|
|
|
- }*/
|
|
|
|
if(isset($alert_time_diff[$pay_id]) && $last_create_time && ($ntime - $last_create_time) > $alert_time_diff[$pay_id] ){
|
|
if(isset($alert_time_diff[$pay_id]) && $last_create_time && ($ntime - $last_create_time) > $alert_time_diff[$pay_id] ){
|
|
$is_need_alert = true;
|
|
$is_need_alert = true;
|
|
$content = '支付通道: '.$pay_id.' ,最近'.$time_str.'秒内没有产生一条订单,尽快排查';
|
|
$content = '支付通道: '.$pay_id.' ,最近'.$time_str.'秒内没有产生一条订单,尽快排查';
|