shish 1 ay önce
ebeveyn
işleme
aff48fa4ff
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 5 5
      app-ghs/controllers/CustomController.php

+ 5 - 5
app-ghs/controllers/CustomController.php

@@ -261,10 +261,10 @@ class CustomController extends BaseController
         $cacheKey = 'help_custom_recharge_' . $customId;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
-            util::fail('已充值,请15秒后再操作');
+            util::fail('已充值,请8秒后再操作');
             return false;
         }
-        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 15, 'has']);
+        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 8, 'has']);
 
         $custom = CustomClass::getLockById($customId);
         if (empty($custom)) {
@@ -335,9 +335,9 @@ class CustomController extends BaseController
         $cacheKey = 'help_custom_deduct_' . $customId;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
-            util::fail('已操作,请15秒后再试');
+            util::fail('已操作,请8秒后再试');
         }
-        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 15, 'has']);
+        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 8, 'has']);
 
         $pair = GhsRechargeSettleService::lockAccountPair(['id' => $customId]);
         $custom = $pair['custom'];
@@ -1444,4 +1444,4 @@ class CustomController extends BaseController
 
         util::success(['buyAmount' => $buyAmount]);
     }
-}
+}