Browse Source

重复提交问题

shish 1 year ago
parent
commit
b718014f7a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app-hd/controllers/RechargeController.php

+ 4 - 0
app-hd/controllers/RechargeController.php

@@ -68,6 +68,10 @@ class RechargeController extends BaseController
             if (empty($custom)) {
                 util::fail('没有找到客户');
             }
+
+            //避免重复提交
+            util::checkRepeatCommit($customId, 4);
+
             $customName = $custom->name;
             $userId = $custom->userId ?? 0;
             $hdId = $custom->hdId;