Browse Source

重复请求问题

shish 2 years ago
parent
commit
c25fbc0b53

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -621,7 +621,7 @@ class ProductController extends BaseController
         $cacheKey = 'batch_change_price_' . $targetId;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
-            util::fail('请稍等5秒操作');
+            util::fail('请5秒操作');
         }
         Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 5, 'has']);
 

+ 1 - 1
app-ghs/controllers/PurchaseOrderController.php

@@ -336,7 +336,7 @@ class PurchaseOrderController extends BaseController
             $cacheKey = 'confirm_put_in_action_' . $id;
             $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
             if (!empty($has)) {
-                util::fail('请稍等5秒操作');
+                util::fail('请5秒操作');
             }
             Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 5, 'has']);