|
|
@@ -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);
|