|
@@ -98,10 +98,10 @@ class CustomController extends BaseController
|
|
|
$cacheKey = 'help_custom_recharge_' . $customId;
|
|
$cacheKey = 'help_custom_recharge_' . $customId;
|
|
|
$has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
|
|
$has = Yii::$app->redis->executeCommand('GET', [$cacheKey]);
|
|
|
if (!empty($has)) {
|
|
if (!empty($has)) {
|
|
|
- util::fail('已提交充值,请10秒后再试');
|
|
|
|
|
|
|
+ util::fail('已充值,请15秒后再操作');
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 10, 'has']);
|
|
|
|
|
|
|
+ Yii::$app->redis->executeCommand('SETEX', [$cacheKey, 15, 'has']);
|
|
|
|
|
|
|
|
$custom = CustomClass::getLockById($customId);
|
|
$custom = CustomClass::getLockById($customId);
|
|
|
if (empty($custom)) {
|
|
if (empty($custom)) {
|