mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修改 QLAPI 系统通知
This commit is contained in:
+6
-6
@@ -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
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user