修改 QLAPI 系统通知

This commit is contained in:
whyour
2025-01-12 15:39:28 +08:00
parent 51ef4e7476
commit ad6e08525c
7 changed files with 24 additions and 25 deletions
+6 -6
View File
@@ -6,10 +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)
})
QLAPI.getEnvs({ searchValue: 'dddd' }).then((x) => {
console.log('getEnvs', x);
});
QLAPI.systemNotify({ title: '123', content: '231' }).then((x) => {
console.log('systemNotify', x);
});
console.log('test desc');
+4 -2
View File
@@ -6,7 +6,9 @@ cron: 1 9 * * *
"""
print("test script")
QLAPI.notify("test script", "test desc")
QLAPI.systemNotify({"title": "test script", "content": "dddd"})
print(QLAPI.notify("test script", "test desc"))
print("test systemNotify")
print(QLAPI.systemNotify({"title": "test script", "content": "dddd"}))
print("test getEnvs")
print(QLAPI.getEnvs("1"))
print("test desc")