:refactor: 更新.gitignore以移除日志文件,重命名sync.go为message.go,并在AddJob函数中添加日志输出
This commit is contained in:
parent
2242b4a433
commit
65d245ddaf
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,7 +32,6 @@ dist
|
|||||||
*_deleted*
|
*_deleted*
|
||||||
./wechat
|
./wechat
|
||||||
/wechat
|
/wechat
|
||||||
/logs
|
|
||||||
|
|
||||||
# 开发环境配置文件
|
# 开发环境配置文件
|
||||||
configs/config.dev.yaml
|
configs/config.dev.yaml
|
||||||
|
@ -45,6 +45,7 @@ func Start() {
|
|||||||
// AddJob
|
// AddJob
|
||||||
// @description: 添加任务
|
// @description: 添加任务
|
||||||
func AddJob(robot model.Robot) {
|
func AddJob(robot model.Robot) {
|
||||||
|
log.Printf("开始添加【%s[%s]】的定时任务", robot.Nickname, robot.WechatID)
|
||||||
// 初始化微信客户端
|
// 初始化微信客户端
|
||||||
robotCli, err := xybot.NewClient(robot.WechatID, robot.ContainerHost, false)
|
robotCli, err := xybot.NewClient(robot.WechatID, robot.ContainerHost, false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user