shish 3 лет назад
Родитель
Сommit
f6c4d6d7af
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app-hd/controllers/PurchaseClearController.php

+ 2 - 2
app-hd/controllers/PurchaseClearController.php

@@ -26,9 +26,9 @@ class PurchaseClearController extends BaseController
         $cacheKey = 'hd_clear_order_pay_' . $ghsId . '_' . $staffId;
         $has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
         if (!empty($has)) {
-            util::fail('请5秒之后再提交');
+            util::fail('请8秒之后再提交');
         }
-        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 5, 'has']);
+        Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 8, 'has']);
 
         //老的没有清的结账单直接过期掉
         $list = PurchaseClearClass::getAllByCondition(['ghsId' => $ghsId, 'status' => PurchaseClearClass::STATUS_AWAIT_PAY], null, '*', null, true);