QLAPI 支持操作环境变量和系统通知

This commit is contained in:
whyour
2025-01-11 01:59:46 +08:00
parent 4667af4ebe
commit 647ed3b66c
18 changed files with 2032 additions and 81 deletions
+6
View File
@@ -6,4 +6,10 @@
*/
console.log('test scripts');
QLAPI.notify('test scripts', 'test desc');
QLAPI.getEnvs({ searchValue: 'dddd' }).then(x => {
console.log(x)
})
QLAPI.systemNotify({ title: '123', content: '231' }).then(x => {
console.log(x)
})
console.log('test desc');
+4 -1
View File
@@ -4,6 +4,9 @@ name: script name
定时规则
cron: 1 9 * * *
"""
print("test script")
QLAPI.notify('test script', 'test desc')
QLAPI.notify("test script", "test desc")
QLAPI.systemNotify({"title": "test script", "content": "dddd"})
print(QLAPI.getEnvs("1"))
print("test desc")