shish преди 2 години
родител
ревизия
f242117337
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app-ghs/controllers/OrderController.php

+ 2 - 2
app-ghs/controllers/OrderController.php

@@ -851,9 +851,9 @@ class OrderController extends BaseController
         $cacheKey = 'ghs_custom_create_order_' . $customId . '_' . $shopAdminId;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
-            util::fail('操作频繁,5秒后再试');
+            util::fail('操作频繁,3秒后再试');
         }
-        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 5, 'has']);
+        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 3, 'has']);
 
         CustomClass::valid($custom, $this->shopId);
         if (isset($custom['mainId']) && !empty($custom['mainId']) && $custom['mainId'] == $custom['ownMainId']) {