New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问如何进行可变的状态存储? #2329
Comments
直接调用青龙API接口,操作变量,如: class QinglongAuth {
}
const qinglongAuth = new QinglongAuth('127.0.0.1:5700', 'PXrKv4U-FZP2', 'rLliZeBy_wuYjaHUcf30l5I_'); async function updateEnvironmentVariable(newValue, varName, remarks, varId) {
} module.exports = updateEnvironmentVariable;
})();*/ |
再不行你写出到JSON到本地不就完了。。。。 |
谢谢!请问clientid和clientsecret怎么获取? |
今天看了看源码,算是解决了这个问题。 期待官方在未来的大版本里提供一个简洁优雅的解决方案! |
Clear and concise description of the problem
感谢您的付出!
想请教您一个问题:我希望脚本A在不断定时执行时,可以查询并更新某一个脚本外的状态变量,就像环境变量一样,但是我没有找到在代码里动态更新环境变量值的方法。这种情况您更推荐怎么处理呢?(比如自行编写工具类来操作db目录里的数据库?写为一个文件?还是自己随便想办法?)
因为没有找到青龙关于”脚本编写时的trick“之类的文档,但又希望找到一个简洁的解决办法,不得已来打扰您。万分感谢。
祝您生活开心!
Suggested solution
提供动态更新环境变量值的魔法命令或简易API
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: