소스 검색

Merge branch 'stabble' into sign

zz 6 년 전
부모
커밋
53f93fe15f
2개의 변경된 파일34개의 추가작업 그리고 4개의 파일을 삭제
  1. 7 0
      app/Http/Controllers/Wap/Pay/OrdersController.php
  2. 27 4
      resources/views/wap/index.blade.php

+ 7 - 0
app/Http/Controllers/Wap/Pay/OrdersController.php

@@ -1614,6 +1614,13 @@ class OrdersController extends Controller
                 $template_type = 'pay_channel_change';
                 $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) <= 3600 ){
+                return ;
+            }
+
+            Redis::hset('autopayalert',$pay_merchant_id,time());
             foreach ($phone_arr as $phone) {
                 AliSMS::send($phone, $template_type, $param);
             }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 27 - 4
resources/views/wap/index.blade.php