mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
✨ feat: 新增拉格朗日链接bug的异常检测
This commit is contained in:
parent
392233c96d
commit
2868d3701e
@ -63,6 +63,10 @@ export class switchers extends plugin {
|
||||
if ((await redis.exists(REDIS_YUNZAI_LAGRANGE))) {
|
||||
driver = JSON.parse(await redis.get(REDIS_YUNZAI_LAGRANGE)).driver;
|
||||
}
|
||||
// 异常检测,之前算法出现问题,如果出现异常就检测纠正
|
||||
if (driver === -1) {
|
||||
driver = 1;
|
||||
}
|
||||
// 设置
|
||||
driver ^= 1;
|
||||
await redis.set(
|
||||
|
Loading…
x
Reference in New Issue
Block a user