shish 1 год назад
Родитель
Сommit
edd1e7c0fb
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app-ghs/controllers/ExpendController.php

+ 3 - 0
app-ghs/controllers/ExpendController.php

@@ -248,6 +248,9 @@ class ExpendController extends BaseController
             }
         }
 
+        //避免重复提交
+        util::checkRepeatCommit($this->adminId, 10);
+
         $post = Yii::$app->request->post();
         $type = $post['type'] ?? -1;
         $amount = $post['amount'] ?? 0;