cqpCow 11 tháng trước cách đây
mục cha
commit
6211901155
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      app/Service/DeleteService.php

+ 8 - 0
app/Service/DeleteService.php

@@ -87,6 +87,10 @@ class DeleteService extends Service
     public function fp($data,$user){
         if(empty($data['id']) || empty($data['type']) || empty($data['man'])) return [false, '必填参数不能为空!'];
 
+        $key = "fpyj".$data['id'].$data['type'];
+        list($status,$msg) = $this->limitingSendRequestBackgExpire($key);
+        if(! $status) return [false,$msg];
+
         try {
             DB::beginTransaction();
             if($data['type'] == 1){
@@ -207,6 +211,10 @@ class DeleteService extends Service
     public function yj($data,$user){
         if(empty($data['id']) || empty($data['type']) || empty($data['man'])) return [false, '必填参数不能为空!'];
 
+        $key = "fpyj".$data['id'].$data['type'];
+        list($status,$msg) = $this->limitingSendRequestBackgExpire($key);
+        if(! $status) return [false,$msg];
+
         try {
             DB::beginTransaction();
             if($data['type'] == 1){