浏览代码

避免重复提交

shish 1 年之前
父节点
当前提交
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;