|
|
@@ -393,7 +393,7 @@ class util
|
|
|
}
|
|
|
|
|
|
//检查是否有重复提交 shish 20211018
|
|
|
- public static function checkRepeatCommit($adminId)
|
|
|
+ public static function checkRepeatCommit($adminId, $second = 10)
|
|
|
{
|
|
|
$ctl = Yii::$app->controller->id;
|
|
|
$action = Yii::$app->controller->action->id;
|
|
|
@@ -402,7 +402,7 @@ class util
|
|
|
if (!empty($has)) {
|
|
|
util::fail('请稍候...');
|
|
|
}
|
|
|
- Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 30, 'has']);
|
|
|
+ Yii::$app->redis->executeCommand('SETEX', [$cacheKey, $second, 'has']);
|
|
|
}
|
|
|
|
|
|
}
|