修改示例脚本

This commit is contained in:
whyour
2024-05-05 19:47:54 +08:00
parent 20be84b352
commit e9852a0002
5 changed files with 41 additions and 29 deletions
+11
View File
@@ -0,0 +1,11 @@
/**
* 任务名称
* name: script name
* 定时规则
* cron: 1 9 * * *
*/
const { sendNotify } = require('./sendNotify.js'); // commonjs
// import { sendNotify } from './sendNotify'; // es6
console.log('test scripts');
sendNotify('test scripts', 'test desc');