|
@@ -1614,6 +1614,13 @@ class OrdersController extends Controller
|
|
$template_type = 'pay_channel_change';
|
|
$template_type = 'pay_channel_change';
|
|
$param = ['pay_id' => $pay_merchant_id, 'new_pay_id' => $change_pay_id];
|
|
$param = ['pay_id' => $pay_merchant_id, 'new_pay_id' => $change_pay_id];
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ $last_alert_time = Redis::hget('autopayalert',$pay_merchant_id);
|
|
|
|
+ if($last_alert_time && (time() -$last_alert_time) <= 10 ){
|
|
|
|
+ return ;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Redis::hset('autopayalert',$pay_merchant_id,time());
|
|
foreach ($phone_arr as $phone) {
|
|
foreach ($phone_arr as $phone) {
|
|
AliSMS::send($phone, $template_type, $param);
|
|
AliSMS::send($phone, $template_type, $param);
|
|
}
|
|
}
|