Kaynağa Gözat

order aldert

zz 4 yıl önce
ebeveyn
işleme
628e380ffc

+ 1 - 10
app/Console/Commands/FailOrderAlertV2.php

@@ -99,6 +99,7 @@ class FailOrderAlertV2 extends Command
                         $param = ['pay_id'=>$pay_id,'new_pay_id' => $back_pay->id];
                         foreach ($phone_arr as $phone){
                             $this->sendSms($phone, 'pay_channel_change',$param);
+                            $this->sendSms($phone, 'order_remind',$param);
                         }
 
                     }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] ){
                     $is_need_alert = true;
                     $content = '支付通道: '.$pay_id.' ,最近'.$time_str.'秒内没有产生一条订单,尽快排查';

+ 1 - 1
app/Console/Kernel.php

@@ -207,7 +207,7 @@ class Kernel extends ConsoleKernel
         $schedule->command('generate_order_stat')->dailyAt("00:25");
 
         //订单预警
-//         $schedule->command('foav2')->everyMinute();
+         $schedule->command('foav2')->everyMinute();
 
         //异步签到插入
         $schedule->command('AsyncUserSign')->everyMinute();