兼容修改
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
// 应用公共文件
|
||||
|
||||
use app\exception\SysException;
|
||||
use support\Log;
|
||||
use support\think\Cache;
|
||||
use Webman\RedisQueue\Client;
|
||||
@@ -720,7 +721,7 @@ function debounce(string $key,int $waitMs = 20)
|
||||
cache($key, 1, $ttl); // 设置一个短暂缓存用于防抖
|
||||
}else{
|
||||
|
||||
throw new \app\exception\SysException("操作过于频繁,请稍后再试");
|
||||
throw new SysException("操作过于频繁,请稍后再试");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user